javascript string 转 date
时间:2014-07-10 12:13:06
收藏:0
阅读:329
function StringtoDate(strDate) {
var date = new Date(strDate.replace(
/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/,
//‘$4:$5:$6 $2/$3/$1‘
‘$1/$2/$3 $4:$5:$6‘
));
return date;
}
javascript string 转 date,布布扣,bubuko.com
原文:http://www.cnblogs.com/yangbt/p/3811959.html
评论(0)