javascript转换字符串转Date

varstr="2005-12-1509:41:30";

vardate=newDate(Date.parse(str.replace(/-/g,"/")));

相关推荐