Dates are numbers: DATE, YEAR, MONTH and DAY

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+5 reads as "the date in B2, 5 days later".

YEAR, MONTH and DAY take a date apart. =YEAR(B2) gives 2025. DATE puts one together: =DATE(2025,4,30) reads as "year 2025, month 4, day 30", always in that order.

Dates are numbersA date and the number stored behind it: 03/03/2025 is stored as 45719, and 03/08/2025 as 45724, five more. Below, the days from March 3 to March 8 as a run of cells, 45719 to 45724: each day is one more than the day before, so adding 5 to a date moves it 5 days on.AB123ShowsStored as03/03/20254571903/08/202545724+55 days later = +545719Mar 345720Mar 445721Mar 545722Mar 645723Mar 745724Mar 8
Dates are numbers

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, month, day)

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)

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 team logs the day each job started. In C2, show the first day of the month the Paint job started.
ABC
1JobStartedMonth 1st
2Paint07/23/202607/01/2026
3Roof09/04/2026
C2=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(2026,7,1) 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+5 is the date in B2, five days later.

In which order does DATE take its parts?

Year, month, day: =DATE(2025,4,30) is April 30, 2025.

How do I get the year from a date?

Use =YEAR(B2). MONTH and DAY work the same way for the month and the day.

Theme