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

x/date_fns/index.js>isSameQuarter

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

Examples

// Are 1 January 2014 and 8 March 2014 in the same quarter? var result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) //=> true

Parameters

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