What DATE does
DATE turns three numbers, a year, a month and a day, into a real Excel date: =DATE(2026,3,15) is Mar 15, 2026. Excel stores that date as a number, a count of days that starts at Jan 1, 1900, which is why you can subtract one date from another or add days to it.
You need it when dates arrive in pieces, such as separate year, month and day columns from an export. Text joined from those pieces only looks like a date, and DATE turns them into one Excel can work with.
It’s also a tidy way to work out one date from another. Give DATE a month one higher than the current one and day 1, and you have the first day of next month, even in December, because month 13 rolls into January of the next year.
Syntax
yearRequired- The year, written with four digits:
2026. Two-digit years are read as 19xx, so26means 1926. monthRequired- The month as a number, 1 for January to 12 for December. Numbers outside that range move into the next or previous year: month 13 is January of the year after.
dayRequired- The day of the month. A day past the end of the month rolls into the next one, so day 32 of January is February 1.
Example: a date from three columns
An export has the year, month and day in separate columns. The formula in D2 is filled down to D4.
If a result shows as a number like 46096, the date is right and only the format is missing, so format the cells as a date.
Example: the first day of the next month
Invoices are due on the first of the month after they’re issued. YEAR and MONTH take the invoice date apart; DATE puts it back together one month on, on day 1. The formula in B2 is filled down to B4.
Add days, months and years to a date
Because a date is a count of days, adding days is ordinary arithmetic. Months and years have different lengths, so they need a function.
| To get | Formula |
|---|---|
| 30 days after the date in A2 | =A2+30 |
| 30 days before it | =A2-30 |
| The same day 3 months later | =EDATE(A2,3) |
| The same day a year later | =DATE(YEAR(A2)+1,MONTH(A2),DAY(A2)) |
| 10 working days later | =WORKDAY(A2,10) |
To count the working days between two dates, use NETWORKDAYS. The free lesson Add and subtract days with dates has exercises on due dates and day counts.
Common mistakes
=DATE(26,3,15)is Mar 15, 1926, because years from 0 to 1899 are added to 1900. Always give the year four digits.- When the year, month or day come in as text, such as “03”, DATE usually copes, but values with spaces or letters give
#VALUE!. Clean them first. =A2&"/"&B2&"/"&C2looks like a date but is text, and on a computer with other regional settings it may be read as a different day. DATE gives a value that means the same everywhere.- DATE always takes the year, then the month, then the day.
=DATE(2026,15,3)rolls month 15 into the next year and gives Mar 3, 2027.
Frequently asked questions
How do I get today's date in a formula?
Use TODAY: =TODAY() returns today’s date and updates every day. To build a date for a fixed day this year, combine them: =DATE(YEAR(TODAY()),12,31) is Dec 31 of the current year.
How do I turn a date code like 20260315 into a date?
Cut the code into its parts and give them to DATE: =DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2)) turns 20260315 in A2 into Mar 15, 2026.
How do I make a date from a month and a year?
Use 1 as the day: with the year in A2 and the month number in B2, =DATE(A2,B2,1) gives the first day of that month. Format the cell as mmm yyyy to show it as Mar 2026.
How do I get the last day of a month?
Ask for day 0 of the next month: =DATE(2026,3,0) is Feb 28, 2026. EOMONTH does the same job: =EOMONTH(A2,0) is the last day of A2’s month.
Why does my DATE formula show a number?
Excel stores dates as numbers, counting days from Jan 1, 1900, and the cell has no date format yet. Press Ctrl+1 (Cmd+1 on a Mac), choose Date and pick a format.