Hello...
You didn't mention what version of Crystal you are using but this may help...
if you use "n" instead of "h" it will give you the minutes...dateDiff ("h", {start_date}, {end_date})
Once you have the total minutes you can divide by 60 to get the hours...
Once you have the total hours in minutes you can subtract this number from the first number to get the leftover minutes...
So...
First formula: @TotalMins
Code:
dateDiff ("h", {start_date}, {end_date})
Second formula: @CalcHours
//you may also have to use a function to drop everything after the "."
Third formula: @CalcMins
Code:
({@TotalMins}) - ({@CalcHours} * 60)
Fourth formula: @TotalHoursMins
Code:
{@CalcHours}&"hours and"&{@CalcMins}&"minutes"
//you can change this concatenation to whatever format you desire...just make sure to use "&" not "+"
Hope this helps!
B~
Boni J. Rychener
Hammerman Associates, Inc.
Crystal Training and Crystal Material
On-site and public classes
Low-cost telephone/email support
FREE independent Crystal newsletter
800-783-2269