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
Day.js does not support parsing w token but will add it in the future.
List of all available parsing tokens https://day.js.org/docs/en/parse/string-format#list-of-all-available-parsing-tokens
any progress?
Most helpful comment
Day.js does not support parsing
wtoken but will add it in the future.List of all available parsing tokens https://day.js.org/docs/en/parse/string-format#list-of-all-available-parsing-tokens