I have this date formatter:
NSDateFormatter *timeFormatter = [[NSDateFormatter alloc] init];
[timeFormatter setDateFormat:@\"HH:mm\"];
If I u
From Apple Documentation, the time formatting strings follow Unicode Technical Standard #35.
As stated in UTR #35, uppercase HH
gives you 24-hour style time while lowercase hh
gives you 12-hour style time.
In short, if you need 24-hour style, use [timeFormatter setDateFormat:@"HH:mm"];
and if you need 12-hour style, use [timeFormatter setDateFormat:@"hh:mm"];