Very Popular
Latest
function default
import { default } from "https://dotland.deno.dev/x/date_fns@v2.22.1/isBefore/index.ts";

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: Date | number
  • the date that should be before the other one to return true
dirtyDateToCompare: Date | number
  • the date to compare with

Returns

boolean

the first date is before the second date