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

Examples

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

Parameters

dirtyDateLeft
  • the later date
dirtyDateRight
  • the earlier date