Created
November 11, 2014 01:53
-
-
Save hachinobu/e92542baec6ffc1c66a5 to your computer and use it in GitHub Desktop.
NSDate with ISO-8601
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDateFormatter* formatter = [NSDateFormatter new]; | |
formatter.dateFormat = @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"; | |
formatter.timeZone = [NSTimeZone timeZoneWithName:@"UTC"]; | |
NSDate* date = [formatter dateFromString:@"2013-10-04T05:16:29.000Z"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment