DAY

2023-12-25 08:49:42  Updated

Syntax

DAY(date)

Purpose

DAY() returns the day of a month in date, ranging from 1 to 31. DAY() is a synonym for DAYOFMONTH().

Examples

obclient> SELECT DAY('2008-12-31');
+--------------------------+
| DAY('2008-12-31') |
+--------------------------+
|                       31 |
+--------------------------+

Contact Us