JS教程:日期格式转换函数
<mce:script type="text/javascript"><!-- function str2date(str){ var d=null; var reg=/^(/d{4})-(/d{2})-(/d{2}) (/d{2}):(/d{2}):(/d{2})/.(/d+)$/ if(arr=str.mat...