Date Time Functions MySQL Tutorial

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