View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default Remove Time from DateTime

=int(A2)

Note that you said:
"... change the format of the data I have imported into Excel from a
DateTime stamp to just a Date stamp. "
but it looks as if you want to change the *content* of the data, not just
the *format*.
--
David Biddulph

wrote in message
...
Hello...

I need to know if there is an easy way to change the format of the
data I have imported into Excel from a DateTime stamp to just a Date
stamp. I am importing data from a Microsoft Dynamics CRM 4.0 report,
and the fields in the report are DateTime fields in the CRM
application. The data that is being imported looks as follows:

8/7/2008 10:00:00 PM

In my workbook, I have formula calculations that compare two dates,
less than or equal to, and the time stamp is throwing off the results
when the dates are the same... It is causing the 'equal to'
calculation to come back false instead of true.

So, what I need is a good way to strip out the Time from the data, and
just include the Date. Is this possible? Thank you in advance for
any help!!