Bug report
Modern DateTimePicker does not show 24h format in popup with format: "dd/MM/yyyy HH:mm". The format, however, is correctly shown in the input
Reproduction of the problem
Dojo: https://dojo.telerik.com/inOlIJuh
Expected/desired behavior
Popup should show also 24h format
Environment
jQuery: 3.4.1
Kendo UI version: 2023.3.1114
Browser: [all]
Hello,
The behavior observed is expected.
The DateTimePicker component exposes a format option that specifies the format, which is used to format the value of the DateTimePicker displayed in the input. The format also will be used to parse the input. However, there is a dedicated timeFormat option that specifies the format, which is used to format the values in the time drop-down list:
$("#datetimepicker").kendoDateTimePicker({
value: new Date(),
componentType: "modern",
format: "dd/MM/yyyy HH:mm",
timeFormat: "HH:mm"
});
Regards,
Aleksandar
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.