I'm trying to convert a string to an NSDate, however the format always comes out as nil
The date I'm trying to convert is:
2012-08-16T16:20:52.619000+00:00
The date format I'm trying is:
@"yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZZZ"
If I change the date to:
@"2012-08-16T16:20:52.619000+0000" // removing the : from +00:00
it works a treat, however I would
(I have also tried
@"yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZ:ZZ"
@"yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZ':'ZZ"
but that didn't work either).
Is it even possible to do this without doing string manipulation and removing the final ":"?