Date Time Functions MySQL Tutorial

mysql>
mysql> SELECT EXTRACT(YEAR FROM '1999-07-02');
+---------------------------------+
| EXTRACT(YEAR FROM '1999-07-02') |
+---------------------------------+
|                            1999 |
+---------------------------------+
1 row in set (0.00 sec)
mysql>