PrevDayOfWeek(Date date, Numeric weekday)

Returns the date of the previous specified weekday before 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