Tip: Other languages are Google-Translated. You can visit the English version of this link.

Extract or get date only from the datetime in Excel

To extract only date from a list of datetime cells in Excel worksheet, the INT, TRUNC and DATE functions can help you to deal with this job quickly and easily.


Extract date only from date time cells with INT or TRUNC function

Normally, in Excel, the datetime is recognized as serial number, the integer part is a date serial number, and the fractional portion is time serial number. The INT and TRUNC functions can help to extract only integer part from the datetime cells.

1. Please enter or copy any of the below formulas into a blank cell where you want to put the result:

=INT(A2)
=TRUNC(A2)

And then drag the fill handle down to the cells you want to apply this formula, and the time portion of the value is discarded as following screenshot shown:

2. Then, you should change the format formula cells to Date format as below screenshot shown:


Extract date only from date time cells with DATE function

In Excel, the DATE function also can help you to extract only the date from datetime cells directly.

Generic syntax:

=DATE(YEAR(datetime),MONTH(datetime),DAY(datetime))
  • datetime: The cell contains the datetime that you want to extract date only from.
  • YEAR(), MONTH(), DAY(): These three arguments are used to extract the separate year, month and day number from the date cell.
  • DATE: This function is used to combine year, month and day numbers from separate cells into a valid date.

Please use the below formula into a blank cell:

=DATE(YEAR(A2),MONTH(A2),DAY(A2))

And then, drag the fill handle down to the cells that you want to fill the formula, and all dates have been extracted from the datetime cells, see screenshot:


Relative functions used:

  • INT:
  • It returns the integer part of a value.
  • TRUNC:
  • This function is used to return a truncated number based on a number of digits.
  • DATE:
  • It returns a valid date based on the year, month and day columns.

Relative date articles:

  • Compare Two Dates By Month And Year Only In Excel
  • If you have two lists of dates, now, you need to compare the dates by month and year only and ignoring the day value, if they have the same month and year, the result should be displayed as True, otherwise should be False as following screenshot shown. How to compare the dates only with month and year but ignoring the day in Excel?

Excel Productivity Tools

300 Advanced Features Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 70% time.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.

Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Office Tab Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.