Skip to main content

Extract or get date only from the datetime in Excel

Author: Xiaoyang Last Modified: 2019-12-25

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?

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

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


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.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations