How save NSDate in CloudKit?

Hello. When I saved NSDate in iCloud, in CloudKit Dashboard i see saved NSDate as Invalid Date. Why?

Replies

Because you didn't save it as an NSDate but as an NSNumber?

I saved as an NSDate.

When i try editing record, i see correct information about date. What else there can be reasons?

If you're seeing dates not display incorrectly except when editing that sounds like a bug on the Dashboard. It would be great to get a bug report filed with the code that you're using to save the date, and then screenshots of what you see in the dashboard afterwards. Please post the bug number here when you have it.

The actual error is that the month and the day are swapped. 2017-Oct-06 becomes 2017-June-10. Only dates with a day higher than 13 are shown as Invalid Dates. But this only happens in Chrome. It all looks good to me in Safari. I filled a radar. The number is 35028989.

cpoetter: If you are the original poster then you may want to understand that "NSDate" is not 2017-10-06 nor is it 2017-06-10. These are both string expressions, in two different formats, for an NSDate object.