Working with dates · About 5 minutes
Dates are numbers: DATE, YEAR, MONTH and DAY
A spreadsheet stores a date as a number: the count of days since the start of 1900. March 3, 2025 is really 45719, and the cell just shows it as a date.
Because it is a number, you can add days to it. =B2 reads as "the date in B2, 5 days later".
YEAR, MONTH and DAY take a date apart. =YEAR( gives 2025. DATE puts one together: =DATE( reads as "year 2025, month 4, day 30", always in that order.
Part of Plus
Free during our founding launch: sign in to unlock this lesson's exercises, the timed practice sets and the rest of Plus. The free lessons stay free, with no account needed.
What DATE, YEAR, MONTH and DAY does
A date in a spreadsheet is a number that the cell dresses up as a date. YEAR, MONTH and DAY pull one piece out of a date as a plain number. DATE does the opposite: it takes a year, a month and a day and builds a real date from them.
Together they let you move a date around safely. You can find the first day of a month, build a due date from three separate cells, or check which month a row belongs to, and the answer stays right when the dates change.
How to write DATE, YEAR, MONTH and DAY
=DATE(
- year
- The year as four digits, like 2026, or a cell that holds it.
- month
- The month as a number from 1 to 12. A bigger number rolls into the next year, so month 13 is January of the year after.
- day
- The day of the month. Day 0 gives the last day of the month before, and a day past the month's end rolls forward.
=YEAR(
- serial_number
- The date to read, usually a cell like B2. MONTH and DAY take the same one part and give the month (1 to 12) and the day (1 to 31).
DATE, YEAR, MONTH and DAY worked example
A team logs the day each job started. In C2, show the first day of the month the Paint job started.
| A | B | C | |
|---|---|---|---|
| 1 | Job | Started | Month 1st |
| 2 | Paint | 07/23/2026 | 07/01/2026 |
| 3 | Roof | 09/04/2026 |
=DATE( YEAR( B2), MONTH( B2), 1)Take the year and the month from B2, and put them back together with day 1: July 1, 2026.Common DATE, YEAR, MONTH and DAY mistakes
The date shows as a number like 46226
The answer is right, but the cell is formatted as a number. Change the cell's format to Date and it shows July 23, 2026.
YEAR gives 1900
The cell inside YEAR holds a small number, not a date, so it counts from the start of 1900. Point YEAR at the cell that holds the date itself.
DATE gives the wrong day
DATE always reads year, then month, then day. Check the order of the three parts, like DATE( for July 1, 2026, whatever order your country writes dates in.
DATE or typing the date?
Typing a date into a cell is fine when it never changes. Use DATE when the parts come from other cells or from a sum, like next year's version of a date, because a typed date can be read differently on a computer set to another country.
To add whole days, a plus sign is enough: a date plus 7 is a week later. To move by whole months, EDATE and EOMONTH are safer than adding days.
Questions people ask
Why does my date show as a number like 45719?
A spreadsheet stores a date as the count of days since the start of 1900. Format the cell as a date and it shows 03/03/2025 again.
How do I add days to a date in Excel?
Add the number: =B2 is the date in B2, five days later.
In which order does DATE take its parts?
Year, month, day: =DATE( is April 30, 2025.
How do I get the year from a date?
Use =YEAR(. MONTH and DAY work the same way for the month and the day.