DATEDIFF()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
Calculates the differences in days between two date arguments.
EXAMPLES
SELECT DATEDIFF('2020-03-01 23:59:59','2020-02-01');
+----------------------------------------------+
| DATEDIFF('2020-03-01 23:59:59','2020-02-01') |
+----------------------------------------------+
| 29 |
+----------------------------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.