We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
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:
Day.js does not support parsing w token but will add it in the future.
w
List of all available parsing tokens https://day.js.org/docs/en/parse/string-format#list-of-all-available-parsing-tokens
Sorry, something went wrong.
any progress?
Successfully merging a pull request may close this issue.
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: