Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

where does the t0000z come from?

{ "_id" : 1, "date" : ISODate("2019-06-23T00:00:00Z"), "tempsF" : [ 39.2, 53.6, 62.6 ] }
{ "_id" : 2, "date" : ISODate("2019-07-07T00:00:00Z"), "tempsF" : [ 57.2, 75.2, 51.8 ] }
{ "_id" : 3, "date" : ISODate("2019-10-30T00:00:00Z"), "tempsF" : [ 64.4, 42.8, 46.4 ] }

Where does the “T00:00:00Z” in “ISODate” come from?

to understand where did this come from in MongoDB database documents.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

ISODate() is a helper function that’s built into MongoDB and it provides output in global standardised ISO 8601 date format that is “YYYY-MM-DDTHH:mm:ssZ”. Here “T” separates the date portion from the time-of-day portion. The Z on the end means UTC 11 (that is, an offset-from-UTC of zero hours-minutes-seconds). Also, that these default to 00:00:00 because time was not defined.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading