Skip to content

Returns the last day of the month for a given date.

func.last_day(<date>[, <unit>])
func.last_day('2024-02-15')
┌──────────────┐
│ '2024-02-29' │
└──────────────┘
LAST_DAY(<date>[, <unit>])
SELECT LAST_DAY('2024-02-15');
┌────────────┐
│ 2024-02-29 │
└────────────┘