Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Databricks SQL
Databricks Runtime
Returns the last day of the month that the date belongs to.
last_day(expr)
expr
: ADATE
expression.
A DATE
.
> SELECT last_day('2009-01-12');
2009-01-31
> SELECT last_day('2009-02-12');
2009-02-28