Created
August 27, 2014 19:39
-
-
Save flagoworld/cd8e5502ceef9dcd892f to your computer and use it in GitHub Desktop.
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 *f = [NSDateFormatter new]; | |
f.dateFormat = @"M/d/yyyy"; | |
NSLog(@"Date: %@", [f dateFromString:@"8/29/2014"]); | |
//Logs: | |
// Date: 2014-08-29 07:00:00 +0000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment