- Where Developers Learn, Share, & Build Careers


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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -