Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/index.js>isFuture

date-fns Deno package
Go to Latest
function isFuture
import { isFuture } from "https://deno.land/x/date_fns@v2.5.1/index.js";

Examples

// If today is 6 October 2014, is 31 December 2014 in the future? var result = isFuture(new Date(2014, 11, 31)) //=> true

Parameters

dirtyDate
  • the date to check