Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/date_fns/isPast/index.ts>default

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

Examples

// If today is 6 October 2014, is 2 July 2014 in the past? var result = isPast(new Date(2014, 6, 2)) //=> true

Parameters

dirtyDate: Date | number
  • the date to check

Returns

boolean

the date is in the past