previous_day
Descriptionβ
Returns the date of the first specified day of week (DOW) that occurs before the input date (DATE or DATETIME). For example, previous_day('2023-04-06', 'Monday') returns the date of the previous Monday that occurred before '2023-04-06'.
This function is supported from v3.1. It is the opposite of next_day.