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

[Calendar] century handler for short year (dd.mm.yy) input #514

Closed
MarcelMpunkt opened this issue Feb 23, 2019 · 1 comment
Closed

[Calendar] century handler for short year (dd.mm.yy) input #514

MarcelMpunkt opened this issue Feb 23, 2019 · 1 comment
Assignees
Labels
lang/javascript Anything involving JavaScript type/feat Any feature requests or improvements
Milestone

Comments

@MarcelMpunkt
Copy link

Feature Request

Description

if the user inputs the year in short form like this: dd.mm.yy
it is automatically corrected to: dd.mm.yyyy

there should be an option to control which years are put in which centuries

At the moment if you input:
11.12.59 it is corrected to 11.12.2059
if you input:
11.12.60 it is corrected to 11.12.1960

Example

maybe it could be controlled via years

e.g. 100 years (2019-100=1919)
>= currentYear
19 -> 1919
20 -> 1920
88 -> 1988
< currentYear
18 -> 2018
4 -> 2004
12-> 2012

Testcase

https://jsfiddle.net/mar7xzvu/

@lubber-de lubber-de added type/feat Any feature requests or improvements lang/javascript Anything involving JavaScript labels Feb 23, 2019
@lubber-de lubber-de self-assigned this Feb 27, 2019
@lubber-de
Copy link
Member

Prepared in #527

@lubber-de lubber-de added this to the 2.7.x milestone Feb 27, 2019
@lubber-de lubber-de modified the milestones: 2.7.x, 2.7.3 Feb 28, 2019
@lubber-de lubber-de added the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Feb 28, 2019
@y0hami y0hami closed this as completed in d06348e Apr 2, 2019
@lubber-de lubber-de removed the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript type/feat Any feature requests or improvements
Projects
None yet
Development

No branches or pull requests

2 participants