Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

isAfter

import { isAfter } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Is 10 July 1989 after 11 February 1987?
const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
//=> true
function isAfter<DateType extends Date>(date: DateType | number | string, dateToCompare: DateType | number | string): boolean;
§
isAfter<DateType extends Date>(date: DateType | number | string, dateToCompare: DateType | number | string): boolean
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
date: DateType | number | string
[src]
  • The date that should be after the other one to return true
§
dateToCompare: DateType | number | string
[src]
  • The date to compare with

§Return Type

§
boolean
[src]

The first date is after the second date