PREVIOUS_DAY (Lakehouse v2)
Returns the date of the previous specified weekday before a given date.
Analyze Syntax
Section titled “Analyze Syntax”func.previous_day(<date>, <weekday>)Analyze Examples
Section titled “Analyze Examples”func.previous_day('2024-06-15', 'Monday')
┌──────────────┐│ '2024-06-10' │└──────────────┘SQL Syntax
Section titled “SQL Syntax”PREVIOUS_DAY(<date>, <weekday>)SQL Examples
Section titled “SQL Examples”SELECT PREVIOUS_DAY('2024-06-15', 'Monday');
┌────────────┐│ 2024-06-10 │└────────────┘