Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Very Popular
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.6.0/isBefore/index.js";

Examples

// Is 10 July 1989 before 11 February 1987? var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) //=> false

Parameters

dirtyDate
  • the date that should be before the other one to return true
dirtyDateToCompare
  • the date to compare with