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
importdayjsfrom'dayjs/esm';importisoWeekfrom'dayjs/esm/plugin/isoWeek';importadvancedFormatfrom'dayjs/esm/plugin/advancedFormat';dayjs.extend(isoWeek);dayjs.extend(advancedFormat);constfirstDay=dayjs().year(2020).month(1).date(4).isoWeek(1).startOf('isoWeek');firstDay.toString();// Sun, 29 Dec 2019 23:00:00 GMT - that seems okfirstDay.format('YYYY-WW');// 2019-01 - this is definitely not correct.
Describe the bug
Expected behavior
YYYY-WW
of29 Dec 2019
should be2020-01
(according to https://www.epochconverter.com/weeks/2019)Information
The text was updated successfully, but these errors were encountered: