Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function getISOWeekYear
import { getISOWeekYear } from "https://deno.land/x/date_fns@v2.12.0/index.js";

Examples

// Which ISO-week numbering year is 2 January 2005? var result = getISOWeekYear(new Date(2005, 0, 2)) //=> 2004

Parameters

dirtyDate
  • the given date