Financial Toolbox    
fbusdate

First business date of month

Syntax

Arguments

Year
Enter as four-digit integer.
Month
Enter as integer from 1 to 12.
Holiday
(Optional) Vector of holidays and nontrading-day dates. All dates in Holiday must be the same format: either serial date numbers or date strings. (Using date numbers improves performance.) The holidays function supplies the default vector.

Description

Date = fbusdate(Year, Month, Holiday) returns the serial date number for the first business date of the given year and month. Holiday specifies nontrading days.

Year and Month can contain multiple values. If one contains multiple values, the other must contain the same number of values or a single value that applies to all. For example, if Year is a 1-by-n vector of integers, then Month must be a 1-by-n vector of integers or a single integer. Date is then a 1-by-n vector of date numbers.

Use the function datestr to convert serial date numbers to formatted date strings.

Examples

See Also
busdate, eomdate, holidays, isbusday, lbusdate


  ewstats frac2cur