iphone - DateTime Objects to NSDate/NSString in iOS -


I get a date from the web service (Odata web service) in this format

  / Date (847065600000)   

According to this question.

This is a timetable item.

Anyone can help to convert it to legitimate iOS date format.

Thanks

 
NSTEminentval time interval = 847065600000; NSDT * date = [date of NSDT with time interval: 1970: time interval]; Update:

I checked your number and it looks like it's actually in milliseconds. You should divide it to 1000 before going through the date to get the correct date.

Comments