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

x/date_fns/index.js>isThisYear

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

Examples

// If today is 25 September 2014, is 2 July 2014 in this year? var result = isThisYear(new Date(2014, 6, 2)) //=> true

Parameters

dirtyDate
  • the date to check