0

I've been trying to get the NSDateFormatter class to format a string which has this format 2015-08-21T21:19:45.328965000000Z.

The format I use is yyyy-MM-dd’T’HH:mm:ss.SSSSSSSSSSSSZ. However the NSDateFormatter keeps returning nil as the result.

Any help would be appreciated.

Thanks

Ali
  • 265
  • 1
  • 2
  • 9

1 Answers1

0

I asked the similar question 3 years back. Please check this answer. Hope this will work.

How to convert UTC date string to local time (systemTimeZone)

Community
  • 1
  • 1
AAV
  • 3,785
  • 8
  • 32
  • 59
  • That doesn't work in my case. The api I'm using returns pico seconds which aren't parsed correctly – Ali Sep 02 '15 at 19:43