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

Examples

// How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? const result = differenceInCalendarISOWeekYears( new Date(2012, 0, 1), new Date(2010, 0, 1) ) //=> 2

Parameters

dirtyDateLeft: Date | number
  • the later date
dirtyDateRight: Date | number
  • the earlier date

Returns

number

the number of calendar ISO week-numbering years