Skip to main content
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.15.0/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