Skip to content

format YYYY-MM returns YYYY-M #41

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

Closed
tiamed opened this issue Mar 15, 2024 · 3 comments · Fixed by #47
Closed

format YYYY-MM returns YYYY-M #41

tiamed opened this issue Mar 15, 2024 · 3 comments · Fixed by #47

Comments

@tiamed
Copy link

tiamed commented Mar 15, 2024

https://codepen.io/tiamed/pen/PogGXKj

format(new Date(), 'YYYY-MM') should return '2024-03' but returned '2024-3'

@justin-schroeder
Copy link
Member

Hmmm...

image

Not for me. what locale are you in? Perhaps there is some bug regarding specific locales we need to sort out.

@tiamed
Copy link
Author

tiamed commented Mar 18, 2024

Hmmm...

image

Not for me. what locale are you in? Perhaps there is some bug regarding specific locales we need to sort out.

The locale is zh-CN

@melodyclue
Copy link

melodyclue commented Mar 19, 2024

Hi, Maybe I have same issue at ja locale.

スクリーンショット 2024-03-19 10 28 59 スクリーンショット 2024-03-25 18 25 55

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

Successfully merging a pull request may close this issue.

3 participants