Last business date of month
returns
the serial date number for the last business date of the given year
and month. Date
= lbusdate(Year
,Month
)
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 character vectors.
returns
the serial date number for the last business date of the given year
and month using optional input arguments. The optional argument Date
= lbusdate(___,Holiday
,Weekend
,outputType
)Holiday
specifies
nontrading days.
If neither Holiday
nor outputType
are specified,
Date
is returned as a serial date number. If
Holiday
is specified, but not
outputType
, then the type of the holiday variable
controls the type of date. If Holiday
is a serial date
number or date character vector, then Date
is returned as a
serial date number.