dropping time from a date-time field

  • Thread starter Thread starter steven.fox
  • Start date Start date
S

steven.fox

This should be simple
we have a field 2005-01-07 12:00AM.....
We only want the 2005-01-07 part (no time part)
any ideas
 
Here's a quick example of the Int function:

MsgBox CDate(Int(Now)), , Now
 
One way:

=INT(A1)

format as date.

(XL stores dates as integer offsets from a base date, and time as
fractional days).
 

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

Similar Threads


Back
Top