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

x/date_fns/index.js>isSameMonth

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

Examples

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

Parameters

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