Created
August 16, 2011 08:26
-
-
Save fjolnir/1148658 to your computer and use it in GitHub Desktop.
This file contains 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 *df = [[NSDateFormatter alloc] init]; | |
df.dateFormat = @"yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'sssZ':00'"; | |
df.locale = [[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease]; | |
df.timeZone = [NSTimeZone timeZoneWithAbbreviation:@"GMT"]; | |
NSDate *d = [df dateFromString:@"2011-08-15T20:13:00.003+02:00"]; | |
NSLog(@"%@ - %@", d, df.timeZone); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment