In mongodb I have some dates stored in a ISODate such as:
ISODate("2017-02-06T18:04:34.954+0000")
By using foo = new Date(); However, in one certain cases it shows up as a string:
"2017-10-05T20:33:59.453Z"
Is there a way of consistency getting the ISODate("2017-02-06T18:04:34.954+0000") result shown above using JavaScript?