Help Centre › Functions & Formulas
For a full list of available calculation functions, please read What calculation functions are supported.
This article describes the formula syntax and usage of the DAY function. For information about the DAYS function, see DAYS function.
Description
Returns the day of a date, represented by a serial number. The day is given as an integer ranging from 1 to 31.
Syntax
DAY(serial_number)
The DAY function syntax has the following arguments:
- serial_number - Required. The date of the day you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
Remarks
- Values returned by the YEAR, QUARTER, MONTH, DAY, HOUR, MINUTE and SECOND functions will be Gregorian values regardless of the display format for the supplied date value. For example, if the display format of the supplied date is Hijri, the returned values for the YEAR, QUARTER, MONTH, DAY, HOUR, MINUTE and SECOND functions will be values associated with the equivalent Gregorian date.
Example
| Formula | Description | Result |
| =DAY({date}) | Day of the date variable (assuming the variable is 2008-10-20) | 20 |
| =DAY(2010-03-13) | Day of the date | 13 |
Errors
For a full list of formula errors, please read Formula errors.