My problem is there is a switch in my app which toggles for 12 hour and 24 hour time format.I am displaying my labels time according to that, but the UIDatePicker
UIDatePicker
Try this code to show 24 Hrs Format in DatePicker:
DatePicker
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"NL"]; [self.datePicker setLocale:locale];