-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
dayjs returns wrong object when created using year week string YYYY-w #999
Comments
Day.js does not support parsing List of all available parsing tokens https://day.js.org/docs/en/parse/string-format#list-of-all-available-parsing-tokens |
any progress? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When creating dayjs object from year week string such as 2020-35, the created object contains the wrong month and date information.
For example:
dayjs('2020-35', 'YYYY-w'). //Wed Jan 01 2020 00:00:00
dayjs('2020-35', 'YYYY-w').format('YYYY-w'). //2020-1
Expected behavior
dayjs should return the right object.
Information
The text was updated successfully, but these errors were encountered: