busdate
Next or previous business day
Description
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 strings or date
character vectors, Busday is
returned as a serial date number. Use the function
datetime to convert serial date
numbers to formatted datetime arrays.
However, if either Date or Holiday are
datetime arrays, Busday is returned as a datetime
array.