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 pickers should have an option to always accept short year as input #212

Closed
vaadin-miki opened this issue Aug 20, 2020 · 0 comments · Fixed by #217
Closed

Date pickers should have an option to always accept short year as input #212

vaadin-miki opened this issue Aug 20, 2020 · 0 comments · Fixed by #217
Assignees
Labels
enhancement New feature or request

Comments

@vaadin-miki
Copy link
Owner

The use case is simple: the user wants to enter 1.8.20 and have it displayed as 1.8.2020 (or even 01.08.2020). Currently it is not possible, as short year is always displayed as two digits. The logic of figuring out the current century is already present in the client-side code (and also in the date pattern object on the server side), so it should be just a matter of a configuration option (when the date pattern has long year turned on, it could still accept short year as input).

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

Successfully merging a pull request may close this issue.

1 participant