nhn / tui.date-picker

Component that selects specific date.
https://nhn.github.io/tui.date-picker/latest/
MIT License
94 stars 30 forks source link

24 hour clock support #93

Open faab007nl opened 3 years ago

faab007nl commented 3 years ago

Version

4.3.1

I am using tui datetime picker and i love it. There is just one thing missing. I would like to see the support for a 24 hour time format.

Greatings, Faab007NL

jajugoguma commented 3 years ago

@faab007 Sorry for late replying. You can use a 24-hour clock by passing an option to timePicker.

const datePicker = new DatePicker(
    // ...
    timePicker: {
        showMeridiem: false,
    },
    // ...
});
vlkf commented 1 year ago

Hello, I am using Datepicker version 4.3.3 with vanilla js and vite.

I use the datepicker with timepicker the way it is on the comment above. The problem is when I select an hour for example 17:00 then on the input I see the time like '05:00 PM'. How can I escape the 'AM/PM' on the input box and show the hour as it is - 17:00 ?