How to setTimeStyle AM/PM to lowercase using the iPhone SDK
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]);
You can change the AM and PM symbols on an NSDateFormatter as follows:
[dateFormatter setAMSymbol:@"am"];
[dateFormatter setPMSymbol:@"pm"];
or in Swift:
formatter.amSymbol = "am"
formatter.pmSymbol = "pm"