Function · Date and time
Excel DAY function
The Excel DAY function returns the day of the month, from 1 to 31. July 4, 2026 returns 4.
Syntax =DAY(serial_number)
=DAY(B1)Arguments
| Name | Required | What to pass |
|---|---|---|
| serial_number | Required | A real date. The result is the day of the month, not the day of the week. |
Examples
July 4, 2026
=DAY(DATE(2026,7,4))Result 4
| A | B | |
|---|---|---|
| 1 | Date | 7/4/2026 |
| 2 | Day | 4 |
DAY returns the day of the month. July 4, 2026 is 4. It is not the day of the week, and it is not how many days are in the month. The 4 in July 4 and the 4 in April 4 are the same result from DAY. Pair it with MONTH and YEAR when you need the whole date taken apart.
A due-on-the-first test is =DAY(B1)=1. That is true for the first of any month. It does not know about weekends. WORKDAY and NETWORKDAYS are the functions that skip Saturday, Sunday, and a holiday list.