last_day
function
Applies to: Databricks SQL Databricks Runtime
Returns the last day of the month that the date belongs to.
Syntax
last_day(expr)
Arguments
expr
: A DATE expression.
Returns
A DATE.
Examples
> SELECT last_day('2009-01-12');
2009-01-31
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for