Date of future or past workday
returns
the serial number of the date a given number of workdays before or
after the start date.EndDate
= datewrkdy(StartDate
,NumberWorkDays
,NumberHolidays
)
Any input can contain multiple values, but if so, all other inputs must contain the same number of values or a single value that applies to all.
For example, if StartDate
is an n-row
character array of date character vectors, then NumberWorkDays
must
be an N
-by-1
vector of integers
or a single integer. EndDate
is then an N
-by-1
vector
of date numbers.
If StartDate
is a serial date number or
date character vector, EndDate
is returned as
a date number. Use datestr
to
convert serial date numbers to formatted date character vectors.
If StartDate
is a datetime array, then EndDate
is
returned as a datetime array.