I've seen various versions of this question, but none of them answer my question.
I want to create an ISODate. For MongoDB. I'm using Node.js
In Node, when I do:
Mon Sep 26 2016 15:17:04 GMT-0400 (EDT) <-- This is correct.
2016-09-26T19:17:04.731Z <-- This is 4 hours ahead
var isodate = new Date().toISOString()
The difference is that
2016-09-26T19:17:04.731Z related to GMT0 timezone and
Mon Sep 26 2016 15:17:04 GMT-0400 (EDT) to your local timezone. Both are point to the same time :)
You can read more about data formats and timezones in Wiki