Format Date as "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"

The Solution to Format Date as "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" is


Call the toISOString() method:

var dt = new Date("30 July 2010 15:05 UTC");
document.write(dt.toISOString());

// Output:
//  2010-07-30T15:05:00.000Z

~ Answered on 2012-10-17 23:40:50


Most Viewed Questions: