Syntax
DATEDIFF(date1, date2)
Purpose
You can call this function to return the number of months between date1 and date2.
Only the date part of the parameter is evaluated. The time part is ignored.
Examples
obclient> SELECT DATEDIFF('2015-06-19','1994-12-17');
+-------------------------------------+
DATEDIFF('2015-06-19','1994-12-17')
+-------------------------------------+
7489
+-------------------------------------+
1 row in set (0.01 sec)