Skip to content

Instantly share code, notes, and snippets.

@iggym
Last active December 19, 2015 03:48
Show Gist options
  • Save iggym/5892324 to your computer and use it in GitHub Desktop.
Save iggym/5892324 to your computer and use it in GitHub Desktop.
Getting Current Time in string in Custom format in objective c
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