Skip to Main Content Skip to Search
Product Documentation

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

busdate | datewrkdy | days360 | days365 | daysact | daysdif | holidays | yearfrac

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS