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

Date format in Calendarpicker not working #1884

Open
bogozaur opened this issue Oct 28, 2022 · 2 comments
Open

Date format in Calendarpicker not working #1884

bogozaur opened this issue Oct 28, 2022 · 2 comments
Labels

Comments

@bogozaur
Copy link

Describe the bug
In the latest build, when you change the output date format from the default YYYY-mm-dd to anything else, the result is not correctly formatted.

To Reproduce
Create a input with data-role="calendarpicker", set data-format="%d %b %Y" or data-format="%d %B %Y" . Now when you pick a date from the calendar, the result is %3 %b %undefined or %2 %B %undefined. The same problem can be seen in the example here: https://metroui.org.ua/calendarpicker.html

Expected behavior
The date should be formatted correctly using the data-format format.

Screenshots
image
image

@olton
Copy link
Owner

olton commented Oct 28, 2022

@olton olton added the bug label Oct 28, 2022
@olton
Copy link
Owner

olton commented Oct 28, 2022

Thank you, I will investigate this bug.

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

No branches or pull requests

2 participants