
π This article includes 2 downloadable practice files β
In this article
DATE creates a real date from separate year, month and day numbers β the reliable way to put dates in formulas.
Syntax
=DATE(year, month, day)
| Argument | What it means |
|---|---|
year |
Four-digit year. |
month |
1β12 (larger values roll into the next year). |
day |
1β31 (0 = last day of the previous month). |
Examples
Example 1
=DATE(2016, 4, 1)
1-Apr-2016, start of the financial year.
Example 2
=DATE(YEAR(A2), MONTH(A2)+1, 0)
Last day of A2βs month.
Example 3
=DATE(YEAR(A2)-(MONTH(A2)<4), 4, 1)
Start of the Indian financial year for any date.
DATE in practice
Where you will use it
- Build a date from separate year, month, day columns in exports
- Make month-start dates for reports
- Avoid regional date typing problems in formulas
Worked example
| Year | Month | Day | Formula | Result |
|---|---|---|---|---|
| 2026 | 10 | 4 | =TEXT(DATE(A2,B2,C2),"dd-mmm-yyyy") | 04-Oct-2026 |
| 2027 | 2 | 29 | =TEXT(DATE(A3,B3,C3),"dd-mmm-yyyy") | 01-Mar-2027 |
| 2026 | 13 | 1 | =TEXT(DATE(A4,B4,C4),"dd-mmm-yyyy") | 01-Jan-2027 |
Results calculated in Excel. Shown with TEXT so the date is readable.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Typing dates as text inside formulas | Use DATE(2026,4,1) instead of "01/04/2026" |
| Surprised by rollovers | DATE rolls over: month 13 becomes January next year, 29 Feb in a non-leap year becomes 1 March |
Related functions
YEAR Β· EOMONTH Β· EDATE Β· TEXT
π Part of the free Excel course: Beginner β Expert Β· Try it in the Formula Lab or ask the AI Helper.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
β¬ Download all 2 files (ZIP Β· 37 KB)
- πDate scenarios workbookMonth maths, financial-year start, working days with holidays β with PASS/FAIL checks and the 2 most common date mistakes.β¬ XLSX Β· 8 KB
- πPractice workbook: Dates & times22 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 34 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.