Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24 hour clock support #93

Open
faab007nl opened this issue Oct 8, 2021 · 2 comments
Open

24 hour clock support #93

faab007nl opened this issue Oct 8, 2021 · 2 comments

Comments

@faab007nl
Copy link

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
Copy link
Contributor

@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
Copy link

vlkf commented Aug 15, 2023

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants