Skip to content

Instantly share code, notes, and snippets.

@jagbolanos
Created June 19, 2012 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagbolanos/2951816 to your computer and use it in GitHub Desktop.
Save jagbolanos/2951816 to your computer and use it in GitHub Desktop.
Parse ISO8601 Date
+ (NSDate*) parseISO8601DateString:(NSString*)dateString {
ISO8601DateFormatter *formatter = [[ISO8601DateFormatter alloc] init];
formatter.parsesStrictly = YES;
NSDate *date = [formatter dateFromString:dateString];
[formatter release];
return [[date retain] autorelease];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment