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

DateFormat.parse year behaviour is inconsistent with documentation #141

Closed
mehmetf opened this issue Mar 12, 2020 · 1 comment
Closed

DateFormat.parse year behaviour is inconsistent with documentation #141

mehmetf opened this issue Mar 12, 2020 · 1 comment

Comments

@mehmetf
Copy link

mehmetf commented Mar 12, 2020

The intl DateFormat class states in its documentation that, when parsing, a two digit year will be implied to be within 20 years in the past or 80 years in the future in order to infer the century. However, when actually parsing, it parses the date as being in the 1st century (e.g. 01/22 is parsed as January 0022).

Internal issue: b/151190062

@jamesderlin
Copy link
Contributor

This is a duplicate of #263.

@mosuem mosuem transferred this issue from dart-archive/intl Apr 18, 2023
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

3 participants