Function · Date and time
Excel DATE function
The Excel DATE function builds a date from a year, month, and day. DATE(2026,7,4) is July 4, 2026, and month 13 rolls into the next year.
Syntax =DATE(year, month, day)
=DATE(2026,7,4)Arguments
| Name | Required | What to pass |
|---|---|---|
| year | Required | The year. 2026 is the year 2026. A value from 0 to 1899 is added to 1900, which is rarely what you want. |
| month | Required | The month, usually 1 to 12. 13 is January of the next year. 0 is December of the previous year. |
| day | Required | The day of the month. 0 is the last day of the previous month. Extra days roll forward. |
Examples
Independence Day 2026
=DATE(2026,7,4)Result July 4, 2026
| A | B | |
|---|---|---|
| 1 | Year | 2026 |
| 2 | Month | 7 |
| 3 | Day | 4 |
| 4 | Date | 7/4/2026 |
DATE builds a real date serial from three numbers. =DATE(2026,7,4) is July 4, 2026, in a US format 7/4/2026. The point of the function is that the month is the second number you pass, not whatever order the computer uses when it reads the text 7/4/2026.
Out-of-range parts roll instead of returning an error. =DATE(2026,13,1) is January 1, 2027. =DATE(2026,7,0) is June 30, 2026, the day before July starts. That rollover is useful for end-of-month math and surprising when a month number was off by one. A two-digit year from 0 through 1899 is added to 1900, so 26 becomes 1926. Pass four digits.