Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (320 points)

I created a mongoDB database, for example a startDate, the startdate is always the monday of a week (I use and I'm in middle european timezone).

"startDate" : ISODate("2014-12-28T23:00:00Z"), 

"startDate" : ISODate("2015-03-29T22:00:00Z")

"startDate" : ISODate("2015-04-05T22:00:00Z"), 

"startDate" : ISODate("2015-10-25T23:00:00Z")

I am confused because sometimes the dateformat is:

2014-12-28T23:00:00Z  (sunday, 23h)

and sometimes it is:

2015-04-05T22:00:00Z (sunday, 22h)

In Java- code the date is monday, 00h -> this is ok. Could you please help me with why is time different with records?

Please log in or register to answer this question.

Related questions

0 votes
1 answer
asked Mar 30, 2021 in SQL by rahulnayar01123 (6.1k points)
0 votes
4 answers

Browse Categories

...