Skip to main content
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/getISOWeeksInYear/index.ts";

Examples

// How many weeks are in ISO week-numbering year 2015? const result = getISOWeeksInYear(new Date(2015, 1, 11)) //=> 53

Parameters

dirtyDate: Date | number
  • the given date

Returns

number

the number of ISO weeks in a year