SELECT LAST_DAY('2003-03-32'); : LAST_DAY « Date Time Functions « MySQL Tutorial






mysql>
mysql> SELECT LAST_DAY('2003-03-32');
+------------------------+
| LAST_DAY('2003-03-32') |
+------------------------+
| NULL                   |
+------------------------+
1 row in set, 1 warning (0.00 sec)

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');