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

Crystal Reports Time formula

Status
Not open for further replies.

michelin

Technical User
Dec 18, 2011
38
US
I'm using Crystal Reports v12.

I have following data:

Unit A Arrived Unit B Arrived Difference
08:29:14 08:29:27 00:00:13
14:11:44 14:11:32 23:59:48

Is there a way how not to get 23:59:48 but of example -00:00:12?

Thanks!
 
I assume you are using DateDiff. So have a formula, subtract A from B normally, but subtract B from A when it is earlier, and show the result as negative.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top