How to setTimeStyle AM/PM to lowercase using the iPhone SDK
datetime, formatting, iphone
Solution
I am not sure why Apple's examples show the AM / PM in lower case, but it is easy to make the date string lower case:
NSDateFormatter *detailsTimeFormatter = [[NSDateFormatter alloc] init];
[detailsTimeFormatter setTimeStyle:NSDateFormatterShortStyle];
NSLog(@"%@",[[detailsTimeFormatter stringFromDate:[NSDate date]] lowercaseString]);
Problem
How can I set the AM / PM time style to lowercase? I'm using the following code and according to Apple's documentation this should returned these values as lowercase but it doesn't. ``` [_detailsTimeFormatter setTimeStyle:NSDateFormatterShortStyle]; ```