Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/getISOWeek/index.ts";

Examples

// Which week of the ISO-week numbering year is 2 January 2005? const result = getISOWeek(new Date(2005, 0, 2)) //=> 53

Parameters

dirtyDate: Date | number
  • the given date

Returns

number

the ISO week