Skip to main content

How to remove time from date in Excel?

Sometimes, when you import data into Excel, if there has a column of date with time stamp, such as 2/17/2012 12:23, and you don’t want to retain the time stamp and want to remove the time 12:23 from the date and only leave the date 2/17/2012. How could you quickly remove time from date in mulitple cells in Excel?

Remove time from date with Format Cells

Remove time from date with Find and Replace function

Remove time from date with VBA code

Remove time from date with Kutools for Excel's Remove time from date function (best) good idea3


If you want to follow along with this tutorial, please download the example spreadsheet.

doc sample


Remove time from date with Format Cells

1.Select the cells you want to remove time, and right click to show the context menu, and choose Format Cells. See screenshot:
doc remove time from datetime 1

2. In the Format Cells dialog, select Date from the Category list, and select one type of date as you need form right section. See screenshot:
doc remove time from datetime 2

3. Click OK, now the time has been removed from each date cell. See screenshot:
doc remove time from datetime 3


Remove Time From DateTime

In Excel, to remove 12:11:31 from 1/21/2017 12:11:31 and make it exactly 1/21/2017, you may have to take some time to create a formula to handle this job. However, the Remove time from date utility of Kutools for Excel can quickly remove timestamp permanently from the date time formatting in Excel. Click to download 30-day free trial.

doc-convert-date-unix-1

Remove time from date with Find and Replace function

1. Select the date range that you want to remove the time.

2. Click Home > Find & Select > Replace, and a Find and Replace dialog box will pop out. See screeenshot:

doc remove time from date1

3. Then enter a spacebar and a asterisk * into the Find what box. And leave blank in the Replace with box.

4. Click Replace All. And all of the time stamp have been removed in the date range. See screenshot:

doc-remove-time-from-date2

5. Then you can format the range to show only the date.


Remove time from date with VBA code

The following VBA code can help you quickly to remove the time stamps from the date directly. Do as follows:

1. Select the range that you want to remove the time.

2. Click Developer>Visual Basic or press Alt + F11, a new Microsoft Visual Basic for applications window will be displayed, click Insert>Module, and input the following code into the Module:

VBA: Remove time from date.

Sub ConvertDates()
'Updateby20140529
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Rng.Value = VBA.Int(Rng.Value)
Next
WorkRng.NumberFormat = "mm/dd/yyyy"
End Sub

3. Then click doc-multiply-calculation-3 button to run the code. And a dialog pops out for selecting a range to remove the time from date. See screenshot:
doc-remove-time-from-date7

4. Click OK, and all of the time in selection have been deleted and the date format also have been set.
doc-remove-time-from-date6


Remove time from date with Kutools for Excel's Remove time from date function (best)

Actually, if you have Kutools for Excel -- a handy tool with more than 300 functions, you can apply its Remove time from date function to quickly and directly remove time from the datetime cell.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

1. Select a cell that you want to place the date, and click Kutools > Formula HelperFormula Helper. See screenshot:
doc kte remove time from date 1

2. In the Formulas Helper dialog, choose Date from the drop-down list of Formula Type, then click at Remove time from date in the Choose a formula section, then go to the Argument input section, select a cell that you want to remove time from. See screenshot:
doc kte remove time from date 1

3. Click Ok, the time has been remove from the datetime, and then to drag fill handle over the cells you want to apply this fomrula as you need , see screenshot:
doc kutools remove time from date 3
doc kutools remove time from date 4


Quickly and easily convert date to other date formatting in Excel

The Apply Date Formatting of Kutools for Excel can quickly convert a standard date to the date formatting as you need as, such as only display month, day, or year, date format in yyyy-mm-dd, yyyy.mm.dd and so on. click for full- featured  free trail in 30 days!
doc apply date format
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Related Articals:

How to remove year from date in Excel?

How to change multiple dates to day of week in excel?

Best Office Productivity Tools

Supercharge Your Spreadsheets: Experience Efficiency Like Never Before with Kutools for Excel

Popular Features: Find/Highlight/Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns     Move Columns   |   Unhide 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 Toolset12 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 Cells, ...)   |   Many More...

Kutools for Excel boasts over 300 features, ensuring that what you need is just a click away...

Supports Office/Excel 2007-2021 & newer, including 365   |   Available in 44 languages   |   Enjoy a full-featured 30-day free trial.

kte tab 201905


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (32)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Just copy the columns and paste them in a txt file, the txt file will not show the hours and minutes. Copy the dates from the txt and paste it back to the xls file. pretty easy
This comment was minimized by the moderator on the site
Copy to a cell and format as general (MS Date Value), then ROUNDDOWN,0 Simple.
This comment was minimized by the moderator on the site
what i've noticed is that when you clean the "date" column, you will always get a standard Number comprised of 5 digits. Usually it something like 43xxx. If the cell contains a timestamp ( 09:40:33) , your number will be 43xxx.yyy, where .yyy contains the details of the Hours:minutes:seconds. What always works a treat for me is to eliminate what's after the "." . To do this, I simply use =left(clean(A1),5) , whereby A1 = cell with the date stamp :) hope this helps anyone.
This comment was minimized by the moderator on the site
This was so helpful and worked for my needs exactly! Thank you!
This comment was minimized by the moderator on the site
Thanks a lot! For me it worked. Is funny you can found better solutions in the comments section than in the actual post ;)
This comment was minimized by the moderator on the site
useful, thanks
This comment was minimized by the moderator on the site
thank you !!!
This comment was minimized by the moderator on the site
cara show de bola
muitissimo obrigado
This comment was minimized by the moderator on the site
Thanks you so much , for that replace option work,,thank you
This comment was minimized by the moderator on the site
Thank you! This helped me a great deal to make dates so that I can then create charts showing accurate trends in performance.
This comment was minimized by the moderator on the site
just use formula =int(date)
This comment was minimized by the moderator on the site
dropping the time with a global replace - GENIUS, dude (...or dudette).
This comment was minimized by the moderator on the site
Part Received Fully At HCL Drop Point-(All Parts Received) at 2015-12-10 15:55:00 how can remove all text showing only date
This comment was minimized by the moderator on the site
Thanks for the delimited function. I can use it for my work. EXCELTIP2DAY
This comment was minimized by the moderator on the site
useful information..
This comment was minimized by the moderator on the site
Awesome, easy solution!! Thanks!
This comment was minimized by the moderator on the site
Thanks, Very helpful
This comment was minimized by the moderator on the site
There's one more method available . . . ctrl+F in the Replace Tab, enter * (without the brackets) . . . time disappears grins
This comment was minimized by the moderator on the site
This is a lie do not use
This comment was minimized by the moderator on the site
We stumble over pebbles and never over mountains!! such a beautifully simple solution (the space * combo) Thank you Thank you and GOD bless Cheers
This comment was minimized by the moderator on the site
txs alot it relly helped me>>>about if i want to remove date from time in Excel
This comment was minimized by the moderator on the site
That overkill. Just round the thing to the decimal. =round(A1,0) The date value in Excel is a number of day.
This comment was minimized by the moderator on the site
This doesn't work if the time is afternoon midday. If it's in the afternoon, the function will round the date up to the next day.
This comment was minimized by the moderator on the site
you can use the floor function instead.
This comment was minimized by the moderator on the site
I did rounddown(A2,) worked like a charm; thanks though for everything else guys!!!
This comment was minimized by the moderator on the site
This solution only works if all your users have the date format of "mm/dd/yyyy" as defualt. A more generalized solution is to use the function DATEVALUE()
This comment was minimized by the moderator on the site
Thanks. Very much useful & easy.
This comment was minimized by the moderator on the site
Great! Finally found something that works! Saved me tons of time! :lol:
This comment was minimized by the moderator on the site
Ton of Thanks! Excellent Tips... :D
This comment was minimized by the moderator on the site
Excellent Tip!!!! I was trying to get right thru various ways, but this is the best!!!!
This comment was minimized by the moderator on the site
So simple! I kept looking for DATE/TIME formulas and couldn't figure this out. SO, finally I googled it, and this was the first link that showed up. Thanks!!! You saved me a ton of work.
This comment was minimized by the moderator on the site
Thanks a bunch, this really helped me out today!!!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations