Created
November 6, 2012 18:52
-
-
Save mluton/4026691 to your computer and use it in GitHub Desktop.
Format Date in User's Preferred Short Format
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* dateFormatter = [[NSDateFormatter alloc] init]; | |
[dateFormatter setDateStyle:NSDateFormatterShortStyle]; | |
NSLog(@"now: %@", [dateFormatter stringFromDate:[NSDate date]]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment