PDA

View Full Version : Solved: Subtracting times and finding difference in minutes



Wire323
05-30-2006, 10:11 AM
When a user presses the "start" button on my form, I assign the current time to a variable. When they press "finish," I store the current time, and try to find the total minutes between the two.

For example:

StartTime = 9:43:22 AM
EndTime = 9:47:17 AM

If I do EndTime - StartTime, I want to store the result (4) as an integer.

I have tried the DateDiff fuction but can't get it to return a result for minutes.

I also posted this question on tek-tips.

Thanks.

Wire323
05-30-2006, 10:34 AM
Nevermind, I got it. Thanks.


DateDiff("n", StartTime, EndTime)