lweekdate
(Not recommended; use dateshift
) Date of last occurrence of
weekday in month
lweekdate
is not recommended because it returns a serial date
number. To return the last occurrence of a weekday as a datetime
value, use the dateshift
function. If you do use
lweekdate
, consider setting the outputType
option to "datetime"
. For more information on updating your code, see
Version History or Replace Discouraged Instances of Serial Date Numbers and Date Strings.
Syntax
Description
returns the date for the last occurrence of LastDate
= lweekdate(Weekday
,Year
,Month
,NextDay
,outputType
)Weekday
in the given
year and month. Weekday
is an integer from 1
(Sunday) through 7
(Saturday). A nonzero value for
NextDay
requires that the week also includes the specified
subsequent weekday. Setting outputType
to
"datetime"
is recommended.