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

x/date_fns/index.js>isEqual

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

Examples

// Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? var result = isEqual( new Date(2014, 6, 2, 6, 30, 45, 0), new Date(2014, 6, 2, 6, 30, 45, 500) ) //=> false

Parameters

dirtyLeftDate
  • the first date to compare
dirtyRightDate
  • the second date to compare