DAYOFMONTH

2024-04-19 08:42:50  Updated

Syntax

DAYOFMONTH(date)

Purpose

DAYOFMONTH() returns the ordinal number of the day in the month of date.

Examples

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

Contact Us