Description
Use this function to return the numeric day of the month for a date. Supported in Chains.
Syntax
DAY("date")
Inputs
This function has the following arguments:
| Name | Required | Valid input |
|---|---|---|
date |
Yes | The date that the result is to be calculated from. This can be a date in the format DD/MM/YYYY or YYYY/MM/DD, an integer date, or a cell reference. A formula which results in one of these is also acceptable. Quotation marks are required for dates entered as text (the "DD/MM/YYYY" or "YYYY/MM/DD" formats). |
Examples
Sample data
A |
|
|---|---|
1 |
24.12.2024 |
2 |
August 7, 2025 |
3 |
3/21/2025 |
Sample formulas
| Use case | Formula | Explanation and Result |
|---|---|---|
| Return the day value for a specified date that is in the format DD/MM/YYYY. | =DAY("1/21/2021") |
This formula returns 21. |
| Return the day value for a specified date that is in the format YYYY/MM/DD. | =DAY("2004/06/03") |
This formula returns 3. |
| Returns the day value of the date in cell A1. | =DAY(A1) |
This formula returns the #VALUE error, as the DAY function requires "/" separator characters only. |
| Return the day value from a date stored as text. | =DAY(DATEVALUE(A2)) |
This formula works in the following manner:
For this data set, it returns 7. |
| Categorize transactions as "Early," "Mid-Month," or "Late" based on the day of the month they occurred. | =IFS(DAY(A3)<=10,"Early", DAY(A3)<=20,"Mid-Month", DAY(A3)>20,"Late") |
This formula works in the following manner:
For this data set, it returns Late. |
Notes
- The entire date must be enclosed in quotation marks if it is provided in text (the "DD/MM/YYYY" or "YYYY/MM/DD" formats).