Time Calculations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to calculate the duration of time between values in two fields. Both
fields are in the form of MM/DD/YY 00:00 I've tried a few times w/o much
success.
 
To get the difference in seconds, you can use DateDiff("s", DateField1,
DateField2).

Once you know the difference in seconds, you can figure out what it is in
other units using arithmetic.
 
joe said:
I need to calculate the duration of time between values in two
fields. Both fields are in the form of MM/DD/YY 00:00 I've tried a
few times w/o much success.

DateDiff() function is explicitly for that purpose.
 
joe said:
I need to calculate the duration of time between values in two fields. Both
fields are in the form of MM/DD/YY 00:00 I've tried a few times w/o much
success.


First, you need to determine what units you want for the
duration, then you cab use the DateDiff function to
calcualate the result. For example, if you want the result
in minutes, DateDiff("n", earliervalue, latervalue)

See Help for details and post back if you need further
assistance.
 

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

How to Calculate Business Days and Hours? 1
adding and multiplicating time 4
specifing dates in a report 4
Date/time query 1
Date Calculation 1
Parameter Query Problem 2
Week starts on Friday 2
Date Calculation 1

Back
Top