Excel Formula: Get Date From Given Day Month And Year
If you have a table which contains three columns, which are day, month, and year, how can you create the Excel valid dates based on these days, months and years in Excel.
If you want to follow along with this tutorial, please download the example spreadsheet.
Generic formula:
DATE(year,month,day) |
Syntaxt and Arguments
Year: a number between 1 and 4-digit number that indicates the year of date. |
If the number is between 0-1900, Excel adds 1900 to the year number automatically. For example, the year number is 10, the date of the formula result will be shown as 1910.
If the number is between 1900 and 9999, the number is the actual year in the result.
Month: a number that indicates the month of date. |
When the number is between 1 and 12, it is the actual month in the result.
If the number is greater than 12, it adds the number of months to the first month of the specified year. For instance, DATE(2019,14,21) returns 2/21/2020.
If the number is negative, Excel will subtract the absolute value of month plus 1 from the first month of the specified year. For instance, DATE(2011,-5,1) returns 7/1/2011.
Day: a number that indicates the day of date. |
If the number is greater than the total number of days in the specified month, Excel will add the number of days to the first day of the specified month.
For example, DATE(2019,3,32) will return the date 2/3/2019.
If the number is negative, Excel will subtract the absolute value of day plus 1 from the first day of the month specified.
For example, DATE(2020,4,-2) will return the date 3/29/2020.
Return Value
The formula returns to a valid date in Excel.
How this formula works
To create a date based on the given year, month and day in cell B3, C3, and D3, please use below formula:
=DATE(B3,C3,D3) |
Or directly type the numbers into the function
=DATE(2019,1,19) |
Press Enter key then drag auto fill handle over cells to apply this formula.
Explanation
DATE function: creates a date based on given year, month and day numbers.
Relative Formulas
- Count days of month
This tutorial provides formulas to count the total days of the month based on given date. - Count days until expiration date
To count the days between today and each expiration date in Excel by formula - Display current date or time
This tutorial provides formulas to show the current date or time in Excel. - Create weekly date range
In this tutorial, it provides a formula to quickly get the weekly date range in Excel.
Relative Functions
- Excel WEEKNUM Function
Returns the week number of the given date in a year - Excel WORKDAY Function
Adds workdays to the given start date and returns a workday - Excel MONTH Function
The MONTH is used to get the month as integer number (1 to 12) from date - Excel DAY Function
DAY function gets the day as a number (1 to 31) from a date - Excel NOW Function
Get the current time and date
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
