NextDayOfWeek(Date date, Numeric weekday)

Returns the date of the next specified weekday following the given date.

Parameters

date
The date to start.
weekday
The numeric value representing the weekday (e.g. 0=Sunday, 1=Monday, etc.).

Returns

Date

Examples