Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Remove time from date time

Hi,

Does anyone know how i can remove the time value from a cell whose
data is date time.

I need to do this to perform some calculation and not just for
formatting so the Selection.NumberFormat = "dd-mmm-yy" will no work.

Thanks in advance
Prem
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Remove time from date time

Prem,

Dates & Times are stored as follows-

Dates are whole integers stored as "Days-Since-1900", Times are stored as
fractions of a day e.g. 0.5 is 12 midday.

To get just the Date portion use the formula-

=INT(A2)

which strips off the Time portion.

regards,

JohnI

"Prem Chandiramani" wrote in message
om...
Hi,

Does anyone know how i can remove the time value from a cell whose
data is date time.

I need to do this to perform some calculation and not just for
formatting so the Selection.NumberFormat = "dd-mmm-yy" will no work.

Thanks in advance
Prem



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 the date, leave the time Matrix Excel Discussion (Misc queries) 7 May 1st 10 07:04 PM
Remove Time from Date Rob Excel Discussion (Misc queries) 3 March 5th 08 06:33 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


All times are GMT +1. The time now is 06:05 PM.

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

About Us

"It's about Microsoft Excel"