Skip to Content
0

Force 24 Hour Time Picker in DateTimePicker

Oct 26, 2017 at 05:07 AM

202

avatar image
Former Member

I use DateTimePicker in my application. The time picker comes in the 12-hour format with AM/PM.

Is there a way to forcefully show the time picker in 24-hour format irrespective of the language/region settings?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Virinchy P Oct 26, 2017 at 05:45 AM
1

Hi Saksham,

Please use with property displayFormat="HH:mm" which force for 24hr format in Date Time Picker.

<DateTimePicker
    id="DTP4"
displayFormat="HH:mm"
change="handleChange"/>

Regards

Virinchy

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks a lot Virinchy. That worked :)

0