MontgomeryPete
Instructor
This should be simple, but I can't seem to add two time values calculated using the DateDiff function.
We want to calculate elpased driver time to reduce overtime.
FirstRun:Format(DateDiff ("n",DriverStartTime,LunchOut)/1440,"ShortTime")
SecondRun:Format(DateDiff("n",DriverEndTime,LunchIn)/1440,"ShortTime")
TimeWorked
[FirstRun]+[SecondRun])
If [FirstRun] =4:30 and [SecondRun] = 4:30 the value for [TimeWorked] is 4:304:30.
How can you add time values? The DateAdd function won't work for this. I have searched many threads, but can't find one that describes the necessary conversion.
Thanks for your help.
We want to calculate elpased driver time to reduce overtime.
FirstRun:Format(DateDiff ("n",DriverStartTime,LunchOut)/1440,"ShortTime")
SecondRun:Format(DateDiff("n",DriverEndTime,LunchIn)/1440,"ShortTime")
TimeWorked
If [FirstRun] =4:30 and [SecondRun] = 4:30 the value for [TimeWorked] is 4:304:30.
How can you add time values? The DateAdd function won't work for this. I have searched many threads, but can't find one that describes the necessary conversion.
Thanks for your help.