You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug dayjs(dayjs('20222-02-02').format()) is invalid date.
Expected behavior dayjs(dayjs('20222-02-02').format()) should be the same as dayjs('20222-02-02').
dayjs('+020222-02-03T00:00:00.000') works -- if there's something I can pass to format to make it format ISO 8601 if the year is less than 10k, and otherwise like this, that would be a good workaround.
Information
Day.js Version: 1.10.6
OS: Ubuntu
Browser: Node
Time zone: GMT
The text was updated successfully, but these errors were encountered:
Describe the bug
dayjs(dayjs('20222-02-02').format())
is invalid date.Expected behavior
dayjs(dayjs('20222-02-02').format())
should be the same asdayjs('20222-02-02')
.dayjs('+020222-02-03T00:00:00.000')
works -- if there's something I can pass toformat
to make it format ISO 8601 if the year is less than 10k, and otherwise like this, that would be a good workaround.Information
The text was updated successfully, but these errors were encountered: