Take the 2-minute tour ×

From Node.js I do

var startDate = new Date('2012-06-06');

Then I save it using mongodb native. It is stored as follows


share|improve this question
Its the ISO 8601 standard - it simply means that you are in UTC+10 timezone, so 6 June hasn't occurred yet at 0 Longitude. –  StuartLC Jun 6 '12 at 4:37
add comment

3 Answers

up vote 3 down vote accepted

What you see is the JSON representation of a date: new Date('2012-06-06').toJSON();


share|improve this answer
add comment

It's just how Dates will be displayed. (I thinks it is some kind of ISO standard code.) Internally it is save in a way more efficient way.

share|improve this answer
add comment

MongoDB stores dates in UTC and not as strings. Check the BSON specs.


share|improve this answer
add comment

Your Answer


