Which is the best way to store a date in MongoDB without considering the timezone?
I try to explain the problem with an example:
Giuseppe in Italy created an
Whole dates should not be placed in a Date object. Despite the name, Date represents a date and a time. If the value you're working with represents a whole date, rather than a specific time on that date, then you should store the value in another format.
Options are:
YYYY-MM-DD or YYYYMMDD format