LAST_DAY (Lakehouse v2)
Returns the last day of the month for a given date.
Analyze Syntax
Section titled “Analyze Syntax”func.last_day(<date>[, <unit>])Analyze Examples
Section titled “Analyze Examples”func.last_day('2024-02-15')
┌──────────────┐│ '2024-02-29' │└──────────────┘SQL Syntax
Section titled “SQL Syntax”LAST_DAY(<date>[, <unit>])SQL Examples
Section titled “SQL Examples”SELECT LAST_DAY('2024-02-15');
┌────────────┐│ 2024-02-29 │└────────────┘