Documentation Center

  • Trials
  • Product Updates

wrkdydif

Number of working days between dates

Syntax

Days = wrkdydif(StartDate, EndDate, Holidays)

Arguments

StartDate

Enter as serial date numbers or date strings.

EndDate

Enter as serial date numbers or date strings.

Holidays

A vector containing values for the number of Holidays between the two dates.

Description

Days = wrkdydif(StartDate, EndDate, Holidays) returns the number of working days between dates StartDate and EndDate inclusive. Holidays is the number of holidays between the given dates, an integer. Enter dates as serial date numbers or date strings.

Examples

Days = wrkdydif('9/1/2000', '9/11/2000', 1)

or

Days = wrkdydif(730730, 730740, 1)

returns

Days =
       6

See Also

| | | | | | |

Was this topic helpful?