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

Explain YYYY vs yyyy #31

Open
BasThomas opened this issue Dec 31, 2020 · 3 comments
Open

Explain YYYY vs yyyy #31

BasThomas opened this issue Dec 31, 2020 · 3 comments

Comments

@BasThomas
Copy link

Some tweets went around recently noting how YYYY might not be what you want to be using, but rather yyyy or y. The "references" omits YYYY and how it differs from its lowercased counterparts.

@david-palmer79
Copy link

Has there been any progress on this? Our team recently encountered this issue. We got the "week year" instead of the desired "day year" in our formatted date string. Since your site is a respected reference for the date formatter, it would be really helpful if you highlight this subtle (for instance it doesn't make a difference every year like 2022) for developers that are not as versed in the nuances of the ISO date standard.

@subdigital
Copy link
Owner

Nothing was changed here, no. The references section omits the YYYY variant to avoid confusion. If you want to add a blurb to the Best Practices section (or a references row with a strong disclaimer) feel free to send me a PR :)

@david-palmer79
Copy link

david-palmer79 commented Dec 10, 2021 via email

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