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

Examples

// Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? var result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) //=> true

Parameters

dirtyDateLeft
  • the first date to check
dirtyDateRight
  • the second date to check