Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/isSameQuarter/index.ts";

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: Date | number
  • the first date to check
dirtyDateRight: Date | number
  • the second date to check

Returns

boolean

the dates are in the same quarter