Skip to content

Instantly share code, notes, and snippets.

@Air-Craft
Last active August 29, 2015 14:16
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 Air-Craft/1024da4715a45c1ce7c4 to your computer and use it in GitHub Desktop.
Save Air-Craft/1024da4715a45c1ce7c4 to your computer and use it in GitHub Desktop.
Parse a standard date/time string in iOS #cocoa #basic #datetime
NSDateFormatter *dateParser = [[NSDateFormatter alloc] init];
dateParser.dateFormat = @"yyyy-MM-d H:m:s";
return [dateParser dateFromString:self.estimatedArrivalDateStr];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment