Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Nov 01, 2024
Send us feedback
last_day
Applies to: Databricks SQL Databricks Runtime
Returns the last day of the month that the date belongs to.
last_day(expr)
expr: A DATE expression.
expr
A DATE.
> SELECT last_day('2009-01-12'); 2009-01-31
next_day function