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
For UIDatePicker you cannot change the time format to 24 or 12, it depends on the user local settings in setting.app