Correct insert DateTime from c# to mongodb
I try to insert local time in MongoDB var time = DateTime.Now; // 03.05.2014 18:30:30 var query = new QueryDocument { { "time", nowTime} }; collection3.Insert(query); But in database I see ISODate("2014-05-03T15:30:30.170Z") , that must be ISODate("2014-05-03T18:30:30.300Z") . Please help me! I think you're getting confused by time zones. The Z at the end of the string indicates that it's in UTC. When you posted this question, it was just after 15:30 UTC. I strongly suspect that the correct instant in time is being recorded - but it's being recorded as an instant in time without reference to a