Files
doris/docs/documentation/cn/sql-reference/sql-functions/date-time-functions/dayofmonth.md
Mingyu Chen 176e185e18 Add broker doc (#1662)
This broker document introduces the properties for different broker types.
2019-08-20 17:18:54 +08:00

443 B

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 |
+-----------------------------------+

##keyword

DAYOFMONTH