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 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.
1.Select the cells you want to remove time, and right click to show the context menu, and choose Format Cells. See screenshot:
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:
3. Click OK, now the time has been removed from each date cell. See screenshot:
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:
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:
5. Then you can format the range to show only the date.
With the function of Text to Columns, you can also remove time from the date. Please do as the following steps:
1. Highlight the range you need to delete the time stamps.
2. Click Data > Text to Columns, and a Convert Text to Columns Wizard will appear. See screenshot
3. Check Delimited, and click Next. Then check Space, and go on next.
4. At last, click Finish. And the time have been isolated from the date. See screenshot:
5. Then you can delete column D. And remember to format the date as you like.
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 button to run the code. And a dialog pops out for selecting a range to remove the time from date. See screenshot:
4. Click OK, and all of the time in selection have been deleted and the date format also have been set.
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 installing Kutools for Excel, please do as below:（Free Download Kutools for Excel Now!)
1. Select a cell that you want to place the date, and click Kutools > Formula Helper > Remove time from date. See screenshot:
2. In the Formula Helper dialog, select the cell which contains the datetime into the textbox, and click Ok. See screenshot:
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:
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!|
|Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.|
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 1 years agoCopy to a cell and format as general (MS Date Value), then ROUNDDOWN,0 Simple.
To post as a guest, your comment is unpublished.· 1 years agowhat 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.
To post as a guest, your comment is unpublished.· 1 years agouseful, thanks
To post as a guest, your comment is unpublished.· 1 years agothank you !!!
To post as a guest, your comment is unpublished.· 1 years agocara show de bola
To post as a guest, your comment is unpublished.· 2 years agoThanks you so much , for that replace option work,,thank you
To post as a guest, your comment is unpublished.· 2 years agoThank you! This helped me a great deal to make dates so that I can then create charts showing accurate trends in performance.
To post as a guest, your comment is unpublished.· 3 years agojust use formula
To post as a guest, your comment is unpublished.· 3 years agodropping the time with a global replace - GENIUS, dude (...or dudette).
To post as a guest, your comment is unpublished.· 3 years agoPart Received Fully At HCL Drop Point-(All Parts Received) at 2015-12-10 15:55:00
how can remove all text
showing only date
To post as a guest, your comment is unpublished.· 4 years agoThanks for the delimited function. I can use it for my work.
To post as a guest, your comment is unpublished.· 4 years agouseful information..
To post as a guest, your comment is unpublished.· 4 years agoAwesome, easy solution!! Thanks!
To post as a guest, your comment is unpublished.· 4 years agoThanks, Very helpful
To post as a guest, your comment is unpublished.· 5 years agoThere's one more method available . . . ctrl+F in the Replace Tab, enter * (without the brackets) . . . time disappears
To post as a guest, your comment is unpublished.· 5 years agoThis is a lie do not use
To post as a guest, your comment is unpublished.· 5 years agoWe stumble over pebbles and never over mountains!! such a beautifully simple solution (the space * combo)
Thank you Thank you and GOD bless
To post as a guest, your comment is unpublished.· 5 years agotxs alot it relly helped me>>>about if i want to remove date from time in Excel
To post as a guest, your comment is unpublished.· 5 years agoThat overkill.
Just round the thing to the decimal.
The date value in Excel is a number of day.
To post as a guest, your comment is unpublished.· 4 years agoThis 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.
To post as a guest, your comment is unpublished.· 5 years agoThis 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()
To post as a guest, your comment is unpublished.· 5 years agoThanks. Very much useful & easy.
To post as a guest, your comment is unpublished.· 5 years agoGreat! Finally found something that works! Saved me tons of time! :lol:
To post as a guest, your comment is unpublished.· 5 years agoTon of Thanks! Excellent Tips... :D
To post as a guest, your comment is unpublished.· 5 years agoExcellent Tip!!!! I was trying to get right thru various ways, but this is the best!!!!
To post as a guest, your comment is unpublished.· 5 years agoSo 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.
To post as a guest, your comment is unpublished.· 5 years agoThanks a bunch, this really helped me out today!!!