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

Support "hh:mm:ss" format for TimePicker #330

Open
b310L opened this issue Jan 2, 2025 · 1 comment
Open

Support "hh:mm:ss" format for TimePicker #330

b310L opened this issue Jan 2, 2025 · 1 comment

Comments

@b310L
Copy link

b310L commented Jan 2, 2025

Hi Mr.yazdi,
Thanks for your package.

I use TimePicker without Datepicker for save just time .
Screenshot_20250102_134237

I want to set default value of my time for edit but not convert this format ("hh:mm:ss") to DateObject or Date.

How can i set this format "hh:mm:ss" to Datepicker value?

example:
<DatePicker disableDayPicker value={"23:00"} plugins={[<TimePicker />]} />
but render:

Screenshot_20250102_135140

@b310L
Copy link
Author

b310L commented Jan 4, 2025

const date = new DateObject({
date: "18:35:44",
format: "HH:mm:ss",
});

//date is null

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

No branches or pull requests

1 participant