I have this date formatter:
NSDateFormatter *timeFormatter = [[NSDateFormatter alloc] init];
[timeFormatter setDateFormat:@\"HH:mm\"];
If I u
If it helps anyone I have just had an issue where I want to display the time for the user in the way they have set on their device:
let timeFormatter = NSDateFormatter()
timeFormatter.timeStyle = NSDateFormatterStyle.ShortStyle
//get the time from the picker
The send the time to our API in 24 style:
timeFormatter.locale = NSLocale(localeIdentifier: "en_GB")
//get the time again