import { differenceInCalendarISOWeeks } from "https://deno.land/x/date_fns@v2.0.0-alpha.35/index.js";
Examples
// How many calendar ISO weeks are between 6 July 2014 and 21 July 2014?
var result = differenceInCalendarISOWeeks(
new Date(2014, 6, 21),
new Date(2014, 6, 6)
)
//=> 3
// How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? var result = differenceInCalendarISOWeeks( new Date(2014, 6, 21), new Date(2014, 6, 6) ) //=> 3