LAST_DAY

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

Analyze Syntax

func.last_day(<date>[, <unit>])

Analyze Examples

func.last_day('2024-02-15')

┌──────────────┐
 '2024-02-29'  
└──────────────┘

SQL Syntax

LAST_DAY(<date>[, <unit>])

SQL Examples

SELECT LAST_DAY('2024-02-15');

┌────────────┐
 2024-02-29  
└────────────┘