Convert ISO 8601 to NSDate
问题 I have a timestamp coming from server that looks like this: 2013-04-18T08:49:58.157+0000 I've tried removing the colons, I've tried all of these: Converting an ISO 8601 timestamp into an NSDate: How does one deal with the UTC time offset? Why NSDateFormatter can not parse date from ISO 8601 format Here is where I am at: + (NSDate *)dateUsingStringFromAPI:(NSString *)dateString { NSDateFormatter *dateFormatter; dateFormatter = [[NSDateFormatter alloc] init]; //@"yyyy-MM-dd'T'HH:mm:ss'Z'" -