JS格式化日期
2016-08-19 本文已影响20人
ilaoke
http://stackoverflow.com/questions/5250244/jquery-date-formatting
http://stackoverflow.com/questions/13646446/javascript-date-tojson-produces-a-date-which-has-wrong-hours-and-minutes
new Date().toJSON().substring(0,10);
new Date().toJSON().substring(0,19).replace('T',' ');