Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Date format in MongoDB does not store Date/Time values

According to the documentation: http://devcenter.appery.io/documentat...

"Date

The Date type value is a string which contains a UTC timestamp stored in ISO 8601 format with millisecond precision: YYYY-MM-DDTHH:MM:SS.MMMZ."

However, when I try to store something in that format, I get the error:

{ code: 'DBSC230', description: 'Incorrect date format: \'2014 -07-29T13:09:34.000Z\'. Correct format is \'yyyy-mm-dd\'.' }

From this, it appears that I can only store the Date part, not the Time part. This seems to be a bug to me, as it directly contradicts the documentation. Please help, I need to store both the Date and Time!

-Kal.

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Date format in MongoDB does not store Date/Time values

OK, the problem was an extra space there after the Year. Once I remove that it works fine. Please close the ticket.

Return to “Issues”