Declined
Last Updated: 25 Oct 2024 08:37 by ADMIN
Vitro
Created on: 19 Sep 2024 10:38
Category: Date/Time Pickers
Type: Bug Report
0
Modern DateTimePicker does not show 24h format in popup with format: "dd/MM/yyyy HH:mm"

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]

1 comment
ADMIN
Aleksandar
Posted on: 25 Oct 2024 08:37

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"
      });
Dojo: https://dojo.telerik.com/ektRMWin

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.