dayofmonth()
Learn how to use the dayofmonth() function to return an integer representing the day of the month.
Returns an integer representing the day number of the given datetime.
Syntax
dayofmonth(date)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| date | datetime | ✔️ | The datetime used to extract the day number. |
Returns
An integer representing the day number of the given datetime.
Example
dayofmonth(datetime(2015-12-14))
Output
| result |
|---|
| 14 |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.