Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Remove Time from Date

How do I remove the time from a date field ? In Excel, the date is displayed
as follows : 10/30/2007 2:34:24 PM

I need to remove the time from this value. I have tried to format the cell
with the proper date format (ie - mm/dd/yyyy) but the time still remained.

Any help would be GREATLY appreciated.

Thanks!
Rob

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Remove Time from Date

This worked for me with my Windows USA date settings (mdy order):

Select the range to fix:
Edit|replace
what: _* (spacebar followed by an asterisk)
with: (leave blank)
replace all

And format the range to show only the date (mm/dd/yyyy for example).

Rob wrote:

How do I remove the time from a date field ? In Excel, the date is displayed
as follows : 10/30/2007 2:34:24 PM

I need to remove the time from this value. I have tried to format the cell
with the proper date format (ie - mm/dd/yyyy) but the time still remained.

Any help would be GREATLY appreciated.

Thanks!
Rob


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default Remove Time from Date

On Mar 5, 12:25*pm, Dave Peterson wrote:
This worked for me with my Windows USA date settings (mdy order):

Select the range to fix:
Edit|replace
what: _* *(spacebar followed by an asterisk)
with: (leave blank)
replace all

And format the range to show only the date (mm/dd/yyyy for example).

Rob wrote:

How do I remove the time from a date field ? *In Excel, the date is displayed
as follows : *10/30/2007 *2:34:24 PM


I need to remove the time from this value. *I have tried to format the cell
with the proper date format (ie - mm/dd/yyyy) but the time still remained.


Any help would be GREATLY appreciated.


Thanks!
Rob


--

Dave Peterson


Also you can just use this formula: =DATEVALUE(LEFT(A1,10)) and format
the cell as date.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default Remove Time from Date

If you have a real Excel date/time number in the cell, mm/dd/yyyy will show
10/30/2007. If you have the date/time as text, mm/dd/yyyy will have no
effect.
10/30/2007 2:34:24 PM is 39385.6072222222 which is Excel date/time number.
You can see this by pressing Ctrl+` (Ctrl+ the key above the tab key). If
you see 10/30/2007 2:34:24 PM instead then you have text in the cell not an
Excel date/time number. Press Ctrl+` to return to normal display. The
integer part of the number is the date and the fractional part is the time.
To get rid of the time completely, put =INT(Your_Time_Cell) in an empty
cell.

Tyro

"Rob" wrote in message
...
How do I remove the time from a date field ? In Excel, the date is
displayed
as follows : 10/30/2007 2:34:24 PM

I need to remove the time from this value. I have tried to format the
cell
with the proper date format (ie - mm/dd/yyyy) but the time still remained.

Any help would be GREATLY appreciated.

Thanks!
Rob



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove time stamp from date in excel Nmeyer Excel Worksheet Functions 7 November 14th 07 02:46 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Remove Time Element of a Date jennie Excel Worksheet Functions 3 July 8th 05 11:36 AM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM


All times are GMT +1. The time now is 11:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"