LAST_DAY¶
The LAST_DAY function returns the last day of the month of a given date or timestamp.
Syntax¶
Parameters¶
value– ADATEorTIMESTAMPexpression.
Examples¶
This returns 2017-12-31.
Notes¶
LAST_DAY accepts only date or timestamp values; other types produce an error.