Syntax
DATEDIFF(date1, date2)
Purpose
Returns the number of days between date1 and date2.
Only the date parts of the parameters are used in the calculation, and the time parts are ignored.
Examples
obclient> SELECT DATEDIFF('2015-06-19','1994-12-17');
+-------------------------------------+
| DATEDIFF('2015-06-19','1994-12-17') |
+-------------------------------------+
| 7489 |
+-------------------------------------+
1 row in set
