differenceInBusinessDays

Modified on Tue, 22 Aug 2023

Description

Use this function to get the number of business days between the given dates.

Syntax

differenceInBusinessDays(dateLeft, dateRight)

Returns

Return ValueDescription
NumberReturns the number of business days between the two dates.

Sample

ExampleResultDescription
differenceInBusinessDays (2023-4-1, 2023-4-8)5In this example, the output will be 5.

To view all the Date functions, click here.

See Also