Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/index.js>isSameISOWeek

date-fns Deno package
Go to Latest
function isSameISOWeek
import { isSameISOWeek } from "https://deno.land/x/date_fns@v2.0.0-beta.2/index.js";

Examples

// Are 1 September 2014 and 7 September 2014 in the same ISO week? var result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) //=> true

Parameters

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