Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

Excel Formula: Get Date From Given Day Month And Year

Author Sun Last modified

doc-get-date-from-year-month-day-1

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.
doc-sample

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.
doc-get-date-from-year-month-day-2
doc-get-date-from-year-month-day-3

Explanation

DATE function: creates a date based on given year, month and day numbers.


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

šŸ¤– Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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.