Syntax
DAY(date)
Note
You can call this function to return the day of month in date, ranging from 1 to 31. DAY() is a synonym of DAYOFMONTH().
Examples
obclient> SELECT DAY('2008-12-31');
+--------------------------+
| DAY('2008-12-31') |
+--------------------------+
| 31 |
+--------------------------+