lweekdate
Return the last selected weekday in a month.
📝Syntax
d = lweekdate(weekdayNumber, yearNumber, monthNumber)
📥Input Arguments
Parameter Description
inputs Weekday number, year number, and month number.
📤Output Arguments
Parameter Description
output A serial date number.
📄Description

Return the last selected weekday in a month.

Weekday numbers follow weekday. The function starts from month end and steps backward to the requested weekday.

Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.

💡Examples
Basic usage.
datestr(lweekdate(6, 2024, 5))
🔗See Also
datetimeduration
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub