Date Time Functions MySQL Tutorial

mysql>
mysql> SELECT DAYOFMONTH('2001-11-00');
+--------------------------+
| DAYOFMONTH('2001-11-00') |
+--------------------------+
|                        0 |
+--------------------------+
1 row in set (0.00 sec)
mysql>