|
-
October 26th, 1999, 11:08 AM
#1
Time Diff
Please can someone tell me how to calculate the difference between two times stored in a recordset.
I do not need to calculate the difference in days or dates, i just need the difference in time.
-
October 26th, 1999, 12:49 PM
#2
Re: Time Diff
Do you want the difference in Hours/Minutes/Seconds?
-
October 26th, 1999, 12:51 PM
#3
Re: Time Diff
Use datediff function to find out the time difference
For Example:
'Difference in hours
diff = DateDiff("h", date1, date2)
'Difference in minutes
diff = DateDiff("n", date1, date2)
'Difference in Seconds
diff = DateDiff("s", date1, date2)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|