The DATE function
DATE turns three numbers into one proper date. Spreadsheets store dates as serial numbers (the number of days since 1 January 1900), so a real date can be sorted, compared and used in sums.
It's the safe way to type a date inside a formula, and the fix for data that arrives with the year, month and day in separate columns.
=DATE(year, month, day)
Arguments
- year
- The year, written with four digits, such as 2025.
- month
- The month number, 1 to 12. Numbers outside that range roll into the next or previous year.
- day
- The day of the month. Numbers past the end of the month roll into the next month; 0 means the last day of the month before.
Try it
=DATE(A2,B2,C2) in D2. Year 2025, month 3, day 14 make the date 14 March 2025.
D2
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Year | Month | Day | Date | |
| 2 | 2025 | 3 | 14 | 14 Mar 2025 | |
| 3 | 2025 | 11 | 30 | ||
| 4 | |||||
| 5 | |||||
| 6 |
Edit the formula in D2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =DATE(2025,13,1) | 1 Jan 2026 | Month 13 rolls over into January of the next year. |
| =DATE(2025,3,0) | 28 Feb 2025 | Day 0 means the last day of the previous month. |
| =DATE(A3,B3+3,C3) | 2 Mar 2026 | Three months after 30 November would be 30 February, which rolls on to 2 March. EDATE stops at the month end instead. |
| =DATE(A2,B2,C2)+28 | 11 Apr 2025 | Add days with plain addition: four weeks later. |
Tips
- Inside formulas, write
DATE(2025,3,14)rather than typing "14/03/2025", which can be read differently on a computer set to US dates. - The first of next month is
=DATE(YEAR(A2),MONTH(A2)+1,1). - Give the result cell a date format, or you'll see the serial number (45730) instead of the date.
Common mistakes
- The result shows a number like 45730.That's the date's serial number. Format the cell as a date.
- A two-digit year gives a date in 1925.DATE adds 1900 to years from 0 to 1899. Always use four digits: 2025, not 25.
- You put the arguments in UK order: DATE(14,3,2025).The order is always year, month, day, wherever you are.
Practise DATE with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.