Skip to Content

Force 24 Hour Time Picker in DateTimePicker

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 26, 2017 at 05:45 AM

    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

    Add comment
    10|10000 characters needed characters exceeded