Skip to main content
Very Popular
Go to Latest
function differenceInBusinessDays
import { differenceInBusinessDays } from "https://deno.land/x/date_fns@v2.6.0/index.js";

Examples

// How many business days are between // 10 January 2014 and 20 July 2014? var result = differenceInBusinessDays( new Date(2014, 6, 20), new Date(2014, 0, 10) ) //=> 136

Parameters

dirtyDateLeft
  • the later date
dirtyDateRight
  • the earlier date