标签:
var date = "2015-11-11 00:00:00";
var newDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(date)
newDate="2015-11-11";
js去除日期字符串时分秒
原文地址:http://www.cnblogs.com/ckaifeng/p/4971795.html