To use lastDayOfISOWeekYear function from date-fns in javascript, you need to follow these steps:
21 chars2 lines
OR
18 chars2 lines
index.tsx49 chars2 lines
ISO week year as the argument to get the last day of the ISO week year.index.tsx114 chars3 lines
In the above example, we passed 2022 as the ISO week year to the function lastDayOfISOWeekYear and it returned the last day of the ISO week year in the format 2023-01-01T00:00:00.000Z.
gistlibby LogSnag