Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 441 Bytes

File metadata and controls

24 lines (17 loc) · 441 Bytes

dayofmonth

description

Syntax

INT DAYOFMONTH(DATETIME date)

获得日期中的天信息,返回值范围从1-31。

参数为Date或者Datetime类型

example

MySQL > select dayofmonth('1987-01-31');
+-----------------------------------+
| dayofmonth('1987-01-31 00:00:00') |
+-----------------------------------+
|                                31 |
+-----------------------------------+