MongoDB: release date to 1970

We are using MongoDB 2.4.9 (64 bit) for Windows 7 SP1 (64 bit). When we run the query below, and we have someone from our collection with a date of birth before 1970, we get the exception "gmtime failed - your system does not support dates until 1970".

db.persons.aggregate({ $project: { date: { year: { $year: "$DateOfBirth" }, month: { $month: "$DateOfBirth" }, day: { $dayOfMonth: "$DateOfBirth" } } } }) 

I read in other threads that this is a known issue when starting MongoDB on some versions of Windows. Please note that our project cannot be deployed on a platform other than Microsoft.

+2
mongodb mongodb-.net-driver
source share

No one has answered this question yet.

See similar questions:

8
MongoDB Unified Structure - Group by Year
0
Date Issues in MongoDB / Windows 10

or similar:

1299
How to query MongoDB with an "how"?
825
How to remove a MongoDB database from the command line?
619
MongoDB vs Cassandra
600
When to use CouchDB over MongoDB and vice versa
467
When to Radish? When in MongoDB?
459
When to use MongoDB or other document-oriented systems?
405
Delete everything in the MongoDB database
21
Data Type Conversion in MongoDB
8
MongoDB Unified Structure - Group by Year
0
Date Issues in MongoDB / Windows 10

All Articles