0

I have an iOS application which downloads a JSON feed from services including Twitter and Instagram. Now some services provide a timestamp with each post in the JSON feed like so:

"created_time": "1296748524"

However some API's return the date of that post like this:

publishedAt = "2014-03-13T13:00:05.000Z"

My app needs a timestamp in order to function. So is there a way to convert 'publishedAt' to a UNIX timestamp in iOS?

Thanks for your time :)

Supertecnoboff
  • 6,406
  • 11
  • 57
  • 98

0 Answers0