From Node.js I do
var startDate = new Date('2012-06-06');
Then I save it using mongodb native. It is stored as follows
'2012-06-05T14: 00: 00.000Z
What you see is a representation of the JSON date: new date ('2012-06-06'). toJSON ();
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toJSON
MongoDB stores dates in UTC, not as strings. Check BSON specifications.
http://bsonspec.org/#/specification
. ( , - ISO-.) .
Source: https://habr.com/ru/post/1670459/More articles:WKWebView iOS 10.3 crash for didReceiveAuthenticationChallenge? - authenticationСоздайте модель Entity Framework на основе существующей базы данных в ядре ASP.NET - c#Repeat animation after javascript made css - javascriptUpdate the app to Marshmallow or Nougat - androidJavaScript - How to save a date in a MongoDB document in ISODate format? - javascriptpython understanding for multiple return function - pythonHow to call the Screen / Component class method from the Response-Navigation header - react-nativeПолучение Action Cable для трансляции в Sidekiq Job - ruby-on-railsGet selected item in ComboBox - c #Проверьте, существует ли дубликат с условием - c#All Articles