cancel
Showing results for 
Search instead for 
Did you mean: 

Force 24 Hour Time Picker in DateTimePicker

0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Virinchy
Active Contributor

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

0 Kudos

Thanks a lot Virinchy. That worked 🙂

Answers (0)