Remove time from date time

P

Prem Chandiramani

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
 
J

JohnI in Brisbane

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top