1

I am storing dates in Mongo DB using Mongoose, they should be in UTC, but I am seeing this using a Mongo IDE (Studio3T) - I take it that the +0000 does not mean UTC?

"eventDate" : ISODate("2019-12-27T17:01:00.000+0000"),
JoeTidee
  • 24,754
  • 25
  • 104
  • 149

2 Answers2

2

+0000 means UTC according to ISO 8601. The letter Z is also possible to indicate UTC time.

Wernfried Domscheit
  • 54,457
  • 9
  • 76
  • 110
1

Yes,Dude! By default the dates are stored in UTC format in MongoDB. For further information,head over to below links.

https://docs.mongodb.com/manual/tutorial/model-time-data/

MongoDb BSON stores Date in UTC time

Rahul9989
  • 21
  • 1