标签: javascript
我从 datepicker (Wed Mar 23 2016 00:00:00 GMT+0530 (IST) )传递了一个日期,我希望它为 ISODate ("2016-03-22T08:47:35.952Z")格式
(Wed Mar 23 2016 00:00:00 GMT+0530 (IST) )
ISODate
("2016-03-22T08:47:35.952Z")
如何在javascript中将IST日期转换为ISO日期?
答案 0 :(得分:3)
var test = new Date("Wed, 23 Mar 2016 00:00:00 +0530"); test.toISOString()