mysql> mysql> SELECT TIMESTAMPDIFF(DAY,'2003-02-01','2003-05-01'); +----------------------------------------------+ | TIMESTAMPDIFF(DAY,'2003-02-01','2003-05-01') | +----------------------------------------------+ | 89 | +----------------------------------------------+ 1 row in set (0.00 sec) mysql>