DateTime Json Value

Good Morning,

I have Date Time column with 02/14/1973 00:44:43 but the JSON is returning an Int64:98523883000. How can I go about to get the the date in Swift that is stored in Backendless?

Cheers,

Michael Iverson

Hello @Michael_Iverson

Sorry for the delay.
The server returns date in milliseconds.
Have you tried to convert the timestamp into NSDate instance?

Regards, Vlad

Hello @Michael_Iverson,
If you use the class approach, SDK should convert timestamp to date automatically.
But if you use the dictionary/map approach you should handle it, e.g:

let date = Date(timeIntervalSince1970: TimeInterval(timestamp / 1000))

Regards,
Olha