LAST_DAY(date) returns the corresponding value for the last day of the month. : LAST_DAY « Date Time Functions « MySQL Tutorial






Returns NULL if the argument is invalid.

mysql>
mysql> SELECT LAST_DAY('2003-02-05');
+------------------------+
| LAST_DAY('2003-02-05') |
+------------------------+
| 2003-02-28             |
+------------------------+
1 row in set (0.00 sec)

mysql>
mysql>








14.23.LAST_DAY
14.23.1.LAST_DAY(date) returns the corresponding value for the last day of the month.
14.23.2.SELECT LAST_DAY('2004-02-05');
14.23.3.SELECT LAST_DAY('2004-01-01 01:01:01');
14.23.4.SELECT LAST_DAY('2003-03-32');