Skip to content

DATE

Builds a real Excel date from a year, a month and a day. It is the safe way to create a date inside a formula.

Syntax

=DATE(, , )

Date and time

All versions of Excel.

Try it

Edit the formula in D2 or change the inputs. The sheet recalculates as you type.

D2
A
B
C
D
1
Year
Month
Day
Date
2
2025
3
15
15-Mar-2025
3

D2 =DATE(A2,B2,C2) returns 15-Mar-2025

How DATE works

DATE turns three numbers into one date. Excel stores a date as a serial number, the count of days since 1 January 1900, so DATE returns a number such as 45731. Format the cell as a date and it reads 15-Mar-2025. DATE is the dependable way to put a date inside a formula, because it doesn't depend on how your computer reads text such as "3/4/2025".

The three arguments

  • year is the year. Always give four digits. A one- or two-digit year is read as an offset from 1900, so DATE(25,3,15) is in 1925.
  • month is the month number. It doesn't have to be between 1 and 12. DATE(2025,14,1) is 1 February 2026, and DATE(2025,0,1) is 1 December 2024.
  • day is the day number, and it rolls over in the same way. DATE(2025,3,0) is 28 February 2025, the day before 1 March. DATE(2025,3,1)-1 gives the same date.

Why the roll-over matters

The roll-over is what makes DATE useful for date arithmetic. To get the first day of next month, add one to the month and set the day to 1: =DATE(YEAR(A2),MONTH(A2)+1,1). If A2 is in December, the month becomes 13 and DATE moves to January of the next year without any extra IF. To get the last day of a month, ask for day 0 of the following month: =DATE(YEAR(A2),MONTH(A2)+1,0). EOMONTH does the same job in fewer characters.

DATE with YEAR, MONTH and DAY

YEAR, MONTH and DAY take a date apart; DATE puts the parts back together. A common pattern is to take a date apart, change one part and rebuild it. =DATE(YEAR(A2)+1,MONTH(A2),DAY(A2)) moves a date forward one year. If A2 is 29 February, the result is 1 March in a non-leap year, so use EDATE with 12 months when month-ends matter.

DATE or a typed date

Typing 15/3/2025 into a formula as text works only if your regional settings read it that way, and the same workbook can break on a colleague's machine. DATE(2025,3,15) always means the same day. When you build dates from columns of year, month and day numbers, DATE is also the right tool: joining them with & produces text, not a date.

If a cell shows 45731, the formula is right and the cell just needs a date number format.

Arguments

year
The year, such as 2025. Use four digits. A value from 0 to 1899 is added to 1900, so 25 becomes 1925, not 2025.
month
The month, normally 1 to 12. Values outside that range roll over: 13 is January of the next year, and 0 is December of the previous year.
day
The day of the month, normally 1 to 31. Values outside the month roll over too: 0 is the last day of the previous month, and 32 in January is 1 February.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Build a date from three numbers

D2 =DATE(A2,B2,C2)

Result: 15-Mar-2025

The result is serial number 45731. The date format on D2 shows it as 15-Mar-2025.

D2
A
B
C
D
1
Year
Month
Day
Date
2
2025
3
15
15-Mar-2025
3

D2 =DATE(A2,B2,C2) returns 15-Mar-2025

Example 2

Roll over: a month number above 12

D2 =DATE(A2,B2,C2)

Result: 01-Feb-2026

Month 14 of 2025 is February 2026, so the result is 1-Feb-2026. DATE carries the extra months into the next year.

D2
A
B
C
D
1
Year
Month
Day
Date
2
2025
14
1
01-Feb-2026
3

D2 =DATE(A2,B2,C2) returns 01-Feb-2026

Example 3

First day of the next month

B2 =DATE(YEAR(A2),MONTH(A2)+1,1)

Result: 01-Dec-2025

YEAR and MONTH take A2 apart, one is added to the month, and DATE rebuilds it: 1-Dec-2025. In December the month would be 13, and DATE would move on to January.

B2
A
B
C
1
Invoice date
Next month starts
2
20-Nov-2025
01-Dec-2025
3

B2 =DATE(YEAR(A2),MONTH(A2)+1,1) returns 01-Dec-2025

Example 4

Day 0 is the last day of the previous month

B2 =DATE(YEAR(A2),MONTH(A2)+1,0)

Result: 29-Feb-2024

Asking for day 0 of March gives the last day of February. 2024 is a leap year, so the answer is 29-Feb-2024.

B2
A
B
C
1
Date in month
Month end
2
10-Feb-2024
29-Feb-2024
3

B2 =DATE(YEAR(A2),MONTH(A2)+1,0) returns 29-Feb-2024

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In D2, build a real date from the year, month and day in row 2. Fill it down to D4.

Answer in D2, then it fills down to D4.

D2
A
B
C
D
E
F
G
1
Year
Month
Day
Date
Order date
Next month starts
2
2025
3
15
20-Nov-2025
3
2025
11
2
4
2026
1
31
5

Common mistakes

  • A two-digit year is added to 1900. =DATE(25,3,15) returns 15 March 1925. Write the full year, or build it with 2000+A2 when the source column holds two-digit years.
  • Joining parts with & makes text, not a date. =A2&"-"&B2&"-"&C2 can look right but won't sort, subtract or feed NETWORKDAYS. Use DATE(A2,B2,C2).
  • The result is a serial number. If a cell shows 45731, apply a date format (Home, Number format, Short Date) rather than changing the formula.
  • DATE doesn't return an error for a day or month that is "too big". =DATE(2025,2,30) quietly returns 2 March 2025, so a typo in the input can pass unnoticed.

Questions people ask

How do I combine separate year, month and day columns into a date?

Use `=DATE(A2,B2,C2)` with the year, month and day cells. Don't join them with `&`, because that returns text. Format the result cell as a date.

Why does DATE return a number like 45731?

Excel stores dates as serial numbers. Select the cell and apply a date format from the Number group on the Home tab, and 45731 shows as 15-Mar-2025.

How do I get the last day of a month with DATE?

Use day 0 of the next month: `=DATE(YEAR(A2),MONTH(A2)+1,0)`. EOMONTH is shorter: `=EOMONTH(A2,0)`.

Can DATE add months or years?

Yes. Add to the month or year argument: `=DATE(YEAR(A2),MONTH(A2)+3,DAY(A2))` moves three months on. Near the end of a month, EDATE is safer, because DATE can spill into the following month.

What happens with DATE(2025,2,30)?

There is no 30 February, so Excel counts two days past the end of February and returns 2 March 2025. DATE never returns an error for an oversized day.

Learn DATE in a real sheet.

DATE is taught in Dates and financial modelling, lesson 2: Building and splitting dates. Each lesson is a short, graded exercise like the one above.