import { default } from "https://deno.land/x/date_fns@v2.22.0/getISOWeekYear/index.ts";
Examples
// Which ISO-week numbering year is 2 January 2005?
const result = getISOWeekYear(new Date(2005, 0, 2))
//=> 2004
// Which ISO-week numbering year is 2 January 2005? const result = getISOWeekYear(new Date(2005, 0, 2)) //=> 2004
Parameters
dirtyDate: Date | number
- the given date