Last active
December 19, 2015 03:48
-
-
Save iggym/5892324 to your computer and use it in GitHub Desktop.
Getting Current Time in string in Custom format in objective c
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 *formatter; | |
NSString *dateString; | |
formatter = [[NSDateFormatter alloc] init]; | |
[formatter setDateFormat:@"dd-MM-yyyy HH:mm"]; | |
dateString = [formatter stringFromDate:[NSDate date]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment