DAYOFMONTH(date) returns the day of the month for date, in the range 0 to 31. : DAYOFMONTH « Date Time Functions « MySQL Tutorial






DAY() is a synonym for DAYOFMONTH().

mysql>
mysql> SELECT DAYOFMONTH('1998-02-03');
+--------------------------+
| DAYOFMONTH('1998-02-03') |
+--------------------------+
|                        3 |
+--------------------------+
1 row in set (0.00 sec)

mysql>








14.14.DAYOFMONTH
14.14.1.DAYOFMONTH(date) returns the day of the month for date, in the range 0 to 31.
14.14.2.DAYOFMONTH('2001-11-00');
14.14.3.Get DAYOFMONTH of start date
14.14.4.DAYOFMONTH(date) returns the day of the month for a given date.