Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function differenceInCalendarQuarters
import { differenceInCalendarQuarters } from "https://deno.land/x/date_fns@v2.12.0/index.js";

Examples

// How many calendar quarters are between 31 December 2013 and 2 July 2014? var result = differenceInCalendarQuarters( new Date(2014, 6, 2), new Date(2013, 11, 31) ) //=> 3

Parameters

dirtyDateLeft
  • the later date
dirtyDateRight
  • the earlier date