Next or previous business day
returns the scalar, vector, or matrix of the next or previous business days,
depending on the optional input arguments, including
Busday
= busdate(___,DirFlag
,Holiday
,Weekend
)Holiday
.
If both Date
and Holiday
are
either serial date numbers or date character vectors, Busday
is
returned as a serial date number.
However, if either Date
or Holiday
are
datetime arrays, Busday
is returned as a datetime
array.
Use the function datestr
to
convert serial date numbers to formatted date character vectors.