function (optionaldateTime
as nullable any, optionalfirstDayOfWeek
as nullable any) as nullable any
date
, datetime
, or datetimezone
dateTime
. This function takes an optional Day
, firstDayOfWeek
, to set the first day of the week for this relative calculation. The default value is Day.Sunday
.
date(2011, 5, 14)
datetimezone(2011, 5, 21, 23, 59, 59.9999999, -7, 0)