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

Custom date format and initializing with existing date #33

Open
YANOUSHek opened this issue Sep 9, 2024 · 1 comment
Open

Custom date format and initializing with existing date #33

YANOUSHek opened this issue Sep 9, 2024 · 1 comment

Comments

@YANOUSHek
Copy link

I'm using the datepicker with custom date format (%d-%m-%Y) and I'm having issues when the datepicker is connected to an input that already contains a date inside (i.e. a standard edit form). It looks like this line doesn't really care about the set format and tries copying the value from input field into the dateValue which later breaks the whole controller.

@airblade
Copy link
Owner

airblade commented Sep 9, 2024

That's weird. Your situation is the same as the Custom Format example on the demo page.

How are you setting the existing date on your edit form?

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

2 participants