DAY
Descriptionβ
Obtain the day information from the date, with return values ranging from 1 to 31.
Aliasβ
- dayofmonth
Syntaxβ
DAY(<dt>)
Parametersβ
Parameter | Description |
---|---|
<dt > | A valid date expression |
Return Valueβ
Returns the day information from the given date.
Examplesβ
select day('1987-01-31');
+----------------------------+
| day('1987-01-31 00:00:00') |
+----------------------------+
| 31 |
+----------------------------+