Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
function differenceInBusinessDays
import { differenceInBusinessDays } from "https://deno.land/x/date_fns@v2.0.0-beta.2/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