DateTimePicker control in Military Time

1 Answer 169 Views
DateTimePicker
James
Top achievements
Rank 1
James asked on 09 Feb 2022, 04:45 PM | edited on 09 Feb 2022, 05:05 PM
Is it possible to have the Time Display in the DateTimePicker control in Military Time?  For example, the user doesn't want to see AM/ PM.  They would just rather see 1 to 23 (23 being 11PM)

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 Feb 2022, 08:09 PM

Hello James,

You can control the format of the time and date via the Format parameter of the component and with it you can select between 24h and 12h formats, here is one example (note the capital HH in the format- that denotes 24h format): https://docs.telerik.com/blazor-ui/components/datetimepicker/overview. You can read more about these formats here: https://docs.telerik.com/blazor-ui/components/dateinput/supported-formats

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DateTimePicker
Asked by
James
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or