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.
可能重复: 日期到字符串 <-> 字符串到日期
我有一个字符串形式的日期:
"Tue Sep 25 12:24:18 GMT+0530 2012"
如何将此字符串转换为日期对象?
var d:Date = new Date(); d.setTime(Date.parse(str));