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

x/date_fns/index.js>isSameYear

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

Examples

// Are 2 September 2014 and 25 September 2014 in the same year? var result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) //=> true

Parameters

dirtyDateLeft
  • the first date to check
dirtyDateRight
  • the second date to check