I use Mongoose in my project and in one of the schemas I use Date field, like this:
reservationDay: { type: Date, default: Date.now }
I would like to update one point from my mistake.
check if you have missed leading zero for a single digit time.
"2017-01-01T8:00:00" is invalid and will give the mentioned error.
"2017-01-01T08:00:00" is valid