Date of specific occurrence of weekday in month

returns
the date number for the specific occurrence of the weekday in the
given `Date`

= nweekdate(`n`

,`Weekday`

,`Year`

,`Month`

)`Year`

and `Month`

.

Any input argument can contain multiple values, but if so, all
other input arguments 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.

Was this topic helpful?