SyntaxFix
Write A Post
Hire A Developer
Questions
Try using the ISO string
var isodate = new Date().toISOString()
See also: method definition at MDN.