Financial Toolbox
  Go to function:
    Search    Help Desk 
lbusdate    Examples   See Also

Last business date of month.

Syntax

Arguments

y
Year. Enter as four-digit integer.
m
Month. Enter as integer from 1 to 12.
hol
Vector of holidays and non-trading-day dates. All dates in hol 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

d = lbusdate(y, m, hol) returns the serial date number for the last business date of the given year y and month m where hol specifies non-trading days.

y and m 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 y is a 1-by-N vector of integers, them m must be a 1-by-N vector of integers or a single integer. d 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, fbusdate, holidays, isbusday



[ Previous | Help Desk | Next ]