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

x/date_fns/index.js>isToday

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

Examples

// If today is 6 October 2014, is 6 October 14:00:00 today? var result = isToday(new Date(2014, 9, 6, 14, 0)) //=> true

Parameters

dirtyDate
  • the date to check