The ADDDATE() function includes a second form: ADDDATE(, )
mysql>
mysql>
mysql> SELECT ADDDATE('2004-11-30 23:59:59', 31);
+------------------------------------+
| ADDDATE('2004-11-30 23:59:59', 31) |
+------------------------------------+
| 2004-12-31 23:59:59 |
+------------------------------------+
1 row in set (0.00 sec)
Related examples in the same category