uidatepicker 24hour formate in ios
ios, iphone, uidatepicker
Solution
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"NL"];
[picker_alarm setLocale:locale];
Problem
I am Trying to assign the `24 hour` formate to `UIDATEPICKERVIEW` but i have not exactly idea to implement it. in my view.h file ``` @property(nonatomic,retain) IBOutlet UIDatePicker *picker_alarm; ``` in my view.m file ``` picker_alarm.date=[NSDate date]; ``` in my .xib file i have taken uidatepicker and its Mode Property to Time in viewcontroller.