Skip to content

Returns the date of the previous specified weekday before a given date.

func.previous_day(<date>, <weekday>)
func.previous_day('2024-06-15', 'Monday')
┌──────────────┐
│ '2024-06-10' │
└──────────────┘
PREVIOUS_DAY(<date>, <weekday>)
SELECT PREVIOUS_DAY('2024-06-15', 'Monday');
┌────────────┐
│ 2024-06-10 │
└────────────┘