What is the DATE function?
=DATE(year, month, day)DATE builds a real date from three numbers. Excel stores dates as serial numbers counting days from January 1, 1900, so the result can be formatted, compared and used in date math.
Months and days that are out of range roll over: month 13 is January of the next year, and day 0 is the last day of the previous month.
Arguments
- year
- Use four digits. Values from 0 to 1899 have 1900 added.
- month
- Usually 1 to 12. Larger or smaller values move into other years.
- day
- Usually 1 to 31. Larger or smaller values move into other months.
DATE examples
Example 1. A fixed date
=DATE(2026, 5, 4)The result is May 4, 2026 (serial number 46146).
Example 2. Last day of a month
=DATE(2026, 3, 0)Day 0 of March is the last day of February: February 28, 2026.
Example 3. Join cells into a date
=DATE(A2, B2, C2)Turns year, month and day stored in separate columns into one date.
Common mistakes
Two-digit years
DATE(26, 5, 4) is the year 1926, not 2026. Always use four digits.
Seeing a number instead of a date
If the cell shows 46146, it is formatted as a number. Change the cell format to Date.
FAQ
- How do I add months to a date?
- Use EDATE, or DATE(YEAR(A2), MONTH(A2)+3, DAY(A2)).