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;
}
相关文章
- 09-02String与Date的互相转换
- 09-02servletContext.getRealPath(String)作用(转)
- 09-02String.getBytes()--->字符串转字节数组
- 09-02int数组转string数组和int数组转string中间用逗号隔开
- 09-02【转】char*,string,CString,int,char[]之间的转换
- 09-02CString转string
- 09-02Golong 科学计数格式转string格式数字
- 09-02将json串转Map《String, List《Object》》
- 09-02JSON- string的对象数组转对象
- 09-02关于在UNIcode环境下得TCHAR转string类型以及string转TCHAR