Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/index.js>getISOWeek

date-fns Deno package
Go to Latest
function getISOWeek
import { getISOWeek } from "https://deno.land/x/date_fns@v2.0.0-beta.2/index.js";

Examples

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

Parameters

dirtyDate
  • the given date