Get DatePart

  • Thread starter Thread starter Tausif Alam
  • Start date Start date
T

Tausif Alam

Hi All,

I have a field datetime sotres date and time. But whenever I want to comapre
only date part, it does not work in simple way. How can I cmpare date only..

Thankx
 
Try using the Int() function on the Date/Time field.
Date/Time fields are actually numeric fields of type Double, whre the
integer part is the date (starting 01/01/1900), and the decimal part is the
time, so Int() "strips" the time part and returns the date part only.
For instance, Int(Now()) would return today's date, without the time part.

HTH,
Nikos
 

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

Back
Top