Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time Difference - Simple calculation 2

Status
Not open for further replies.

jpkeller55

Technical User
Apr 11, 2003
131
US
I have searched many Time Differnce posts and can't seem to find an example of my problem.

I want to simply calculate in minutes the time difference between PrintTime and 4pm (ShipTime). ShipTime will always be 4pm (16:00)

For example:

Print Time TimeDiff
12:00 240
13:05 175
14:30 90


Thanks for any help!
 
I figured the DateDiff function wzas the way to go. How do I write it so it always calculates from 4pm?
 
Figured it out...thanks!

MyTime: DateDiff("n",[PrintTime],"16:00")
 
And without function call:
(#16:00# - [PrintTime]) * 1440

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top