DateDiff and todays date?

  • Thread starter Thread starter St.Phun
  • Start date Start date
S

St.Phun

Hi I was wondering if anyone knew if AccessXP has a today function which
would allow one to calculate the elapsed number of days between dateX and
today. Would the expression be DateDiff (Today) - (DateX)?
Thanx
 
Hi I was wondering if anyone knew if AccessXP has a today function which
would allow one to calculate the elapsed number of days between dateX and
today. Would the expression be DateDiff (Today) - (DateX)?
Thanx

In days?
=DateDiff("d",[DateX],Date())
or..
=Date() - [DateX]
 
Hi I was wondering if anyone knew if AccessXP has a today function which
would allow one to calculate the elapsed number of days between dateX and
today. Would the expression be DateDiff (Today) - (DateX)?
Thanx

The DateDiff function takes three arguments: the unit of measurement
("s" is seconds, "yyyy" is years, "d" is days), and two date/time
fields. Try

DateDiff("d", [DateX], Date())


John W. Vinson[MVP]
 
Thanx I got it to work.
-St.Phun

John Vinson said:
Hi I was wondering if anyone knew if AccessXP has a today function which
would allow one to calculate the elapsed number of days between dateX and
today. Would the expression be DateDiff (Today) - (DateX)?
Thanx

The DateDiff function takes three arguments: the unit of measurement
("s" is seconds, "yyyy" is years, "d" is days), and two date/time
fields. Try

DateDiff("d", [DateX], Date())


John W. Vinson[MVP]
 

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

date diff using criteria 3
DateDiff problem 3
calculate difference between dates 5
datediff 4
Age 9
DateDiff Question 4
how do i calculate the number of days until a certain date 1
DateDiff to calculate work days 2

Back
Top