Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何使用 Jquery 或 Javascript 将此格式“2012-04-10T15:57:51.013”转换为 Date javascript 对象。
只是简单的 JavaScript 日期:
var x = '2012-04-10T15:57:51.013'; var dateObject = new Date(x);
演示
可能不适用于所有浏览器。最好使用datejs