SyntaxFix
Write A Post
Hire A Developer
Questions
Call the toISOString() method:
toISOString()
var dt = new Date("30 July 2010 15:05 UTC"); document.write(dt.toISOString()); // Output: // 2010-07-30T15:05:00.000Z