Skip to main content
Module

x/date_fns/isAfter/index.ts>default

date-fns Deno package
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/isAfter/index.ts";

Examples

// Is 10 July 1989 after 11 February 1987? var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) //=> true

Parameters

dirtyDate: Date | number
  • the date that should be after the other one to return true
dirtyDateToCompare: Date | number
  • the date to compare with

Returns

boolean

the first date is after the second date