Calculating Intervals Between Dates
mysql> mysql> SELECT TO_DAYS('1884-01-01') - TO_DAYS('1883-06-05') AS days; +------+ | days | +------+ | 210 | +------+ 1 row in set (0.00 sec) mysql>