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

Examples

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

Parameters

dirtyDateLeft
  • the later date
dirtyDateRight
  • the earlier date