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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i find a time difference

Status
Not open for further replies.

Appollo14

Technical User
Joined
Sep 4, 2003
Messages
182
Location
GB
Hello all,
I have two text fields which i convert to to a time. These times give me a delivery time and an actual delivery time. In my report i want to count all jobs where the actual delivery time is more than 30minutes greater than the delivery time.
How can i do this.
The original text goes in as 08:00 for example and is converted to time using the CTime function. If it makes any difference I'm using Crytal reports version 8.

Any suggestions?

Regards,
Noel.
 
Hi Guys,

Had a burst of inspiration just after submitting my post. I've sorted this one using the hour and minutes functions and doing a simple calculation, which is made easier by the fact that both times are on the same day.

Would still be interested to know if there is a simpler way of dealing with what appears to be a straight forward comparrison though.

Regards,
Noel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top