Excel function

DATEfunction

Combines year, month and day numbers into a single date.

All versions
=DATE(2026, 5, 4)

May 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat

Enter 14 for month or 0 for day. The date rolls into the next year or the last day of the previous month. Try breaking it on purpose to see the errors.

Result

2026-05-04

year

The year. 1900 is added to values from 0 to 1899.

month

The month. Values above 12 or below 1 roll into other years.

day

The day. Values past the end of the month roll into other months.

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

  1. Example 1. A fixed date

    =DATE(2026, 5, 4)

    The result is May 4, 2026 (serial number 46146).

  2. Example 2. Last day of a month

    =DATE(2026, 3, 0)

    Day 0 of March is the last day of February: February 28, 2026.

  3. 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

FAQ

How do I add months to a date?
Use EDATE, or DATE(YEAR(A2), MONTH(A2)+3, DAY(A2)).