SUBDATE()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
A description for this Function has not yet been added to this Documentation.
EXAMPLES
SELECT SUBDATE('2019-01-02 12:00:00', 30);
+------------------------------------+
| SUBDATE('2019-01-02 12:00:00', 30) |
+------------------------------------+
| 2018-12-03 12:00:00 |
+------------------------------------+
SELECT SUBDATE('2020-01-02', INTERVAL 31 DAY);
+----------------------------------------+
| SUBDATE('2020-01-02', INTERVAL 31 DAY) |
+----------------------------------------+
| 2019-12-02 |
+----------------------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.