简体   繁体   中英

Convert IST to ISO DATE Format in Javascript?

I am passing a date from a datepicker (Wed Mar 23 2016 00:00:00 GMT+0530 (IST) ) and I want it as ISODate ("2016-03-22T08:47:35.952Z") format

How to convert IST date to ISO date in javascript?

var test = new Date("Wed, 23 Mar 2016 00:00:00 +0530");
test.toISOString() 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM