Note: The other languages of the website are Google-translated. Back to English

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:


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:

  • 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:


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?

The Best Office Productivity Tools

Kutools for Excel - Helps 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 80% time for you.

  • 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.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

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, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet

Follow Us

Copyright © 2009 - | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL