import { differenceInCalendarQuarters } from "https://deno.land/x/date_fns@v2.5.1/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
// 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