LAST_DAY

Learn how to use the LAST_DAY date/time function in PlaidCloud Lakehouse. Returns the last day of the month for a given date - with syntax and examples.

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  
└────────────┘