Category: Date and Time function
This function returns the number of the corresponding day of the month, from 1 through 31, from date.
Argument | Type | Description |
---|---|---|
date | Date or Number (date serial) | An expression representing a date. The date to extract the day of the month from. |
Return value type: Number (Integer).
The date arguments can take any value or expression that evaluates to a date serial value. Examples include:
day(#2021-08-15) //Returns 15.
day(42097) //Returns 3 (42097 corresponds to April 3rd, 2015.)
day( makedate(2014,1,1) ) //Returns 1.