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