Sorry, I am a newbie at crystal.
I have this formula
Formula#1
and I need to apply a formula to round the value off to the nearest 1/4 hour.
here is the formula I believe I need to apply to that equation:
Formula#2
CurrentDateTime is the time value Returned by the First expression.
Can anyone explain how to apply formula 2 to formula 1 ?? Thanks in advance!!!!!!!!
I have this formula
Formula#1
Code:
Formula=Cdbl(Sum ({@cRegular},usp_rptTimeSheet;1.Vehicle_Name})/60)
and I need to apply a formula to round the value off to the nearest 1/4 hour.
here is the formula I believe I need to apply to that equation:
Formula#2
Code:
datetimevar x := CurrentDateTime;
DATEADD("n", (DATEPART("n", x) + 14) / 15 * 15 - DATEPART("n",x), x);
CurrentDateTime is the time value Returned by the First expression.
Can anyone explain how to apply formula 2 to formula 1 ?? Thanks in advance!!!!!!!!