Input Arguments

Date being checked, specified as a serial date number, date
character vector, or datetime array. Date can contain
multiple dates, but they must all be in the same format. Dates are
assumed to be whole date numbers or date stamps with no fractional
or time values.

All dates in Holiday must be the same format:
either serial date numbers, or date character vectors, or datetime
arrays. (Using serial date numbers improves performance.) The holidays function supplies the default
vector.