|
Hi guruskec@gmail.com,
Thanks for your report. This is expected behavior. Please review the documentation around JavaScript Date Object Methods. Specifically, please note that getMonth() returns 0-11, and getYear() has been deprecated. I believe getFullYear() will provide the results that you expect.
Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-users group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group.
Kind regards,
Thomas
|