LAST_DAY()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
A description for this Function has not yet been added to this Documentation.
EXAMPLES
SELECT LAST_DAY('2018-02-01') as 'Feb 2018',
LAST_DAY('2020-02-01') as 'Feb 2020',
LAST_DAY('2020-01-02 12:00:00') AS 'Jan 2020',
LAST_DAY('2020-02-30') AS 'Bad Day';
+------------+------------+------------+---------+
| Feb 2018 | Feb 2020 | Jan 2020 | Bad Day |
+------------+------------+------------+---------+
| 2018-02-28 | 2020-02-29 | 2020-01-31 | NULL |
+------------+------------+------------+---------+
Warning (Code 1292): Incorrect datetime value: '2020-02-30'
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.