The DAY function
DAY gives the day-of-the-month part of a date as a number from 1 to 31. It doesn't tell you the weekday; for Monday, Tuesday and so on, use TEXT.
Paired with EOMONTH, it tells you how many days are in a month.
=DAY(serial_number)
Arguments
- serial_number
- The date (or cell holding a date) to take the day from.
Try it
=DAY(A2) in B2. The day part of 14 March 2025 is 14.
B2
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Day | ||
| 2 | 14 Mar 2025 | 14 | ||
| 3 | 10 Feb 2024 | |||
| 4 | 28 Jun 2025 | |||
| 5 | ||||
| 6 |
Edit the formula in B2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =DAY(EOMONTH(A3,0)) | 29 | The last day of February 2024 is the 29th, a leap year. |
| =TEXT(A2,"dddd") | Friday | DAY gives the date number; TEXT gives the weekday name. |
| =IF(DAY(A4)>=25,"After payday","Before payday") | After payday | Check where a date falls against a monthly payday on the 25th. |
Tips
=DAY(EOMONTH(A2,0))gives the number of days in A2's month.- Rebuild a date with a different day:
=DATE(YEAR(A2),MONTH(A2),1)is the 1st of the same month. - Format the result cell as a number, not a date.
Common mistakes
- You wanted the weekday, but got a number like 14.DAY is the day of the month. Use
TEXT(A2,"dddd")for the weekday name. - DAY returns #VALUE!.The cell holds text that looks like a date. Convert it to a real date first.
- The day and month seem swapped.The date was probably read in US order (month/day). Check by formatting the cell as "d mmm yyyy".
Practise DAY with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.