DATE_ADD()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
Performs arithmetic operations on the given date value, adding an interval of the given expression in the specified units.
EXAMPLES
SELECT DATE_ADD('1999-12-01', INTERVAL 31 DAY) AS result;
+------------+
| result |
+------------+
| 2000-01-01 |
+------------+
-- Leap year is accounted for
SELECT DATE_ADD('2020-02-01', INTERVAL 31 DAY) AS result;
+------------+
| result |
+------------+
| 2020-03-03 |
+------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.