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

x/date_fns/index.js>isYesterday

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

Examples

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

Parameters

dirtyDate
  • the date to check