JOR wrote:
> hello,
>
> just want to get an answer from experts. i have database that needs to
> calculate the time difference in 24 hour time format: see example.
>
> onblock = 14:00
> offblock = 13:20
> on/off block diff = 00:40
>
> im calculating from query and onblock, offblock are in "short time"format.
>
> Please help. ..
>
> Thanks,
>
> JOR
If you want maximum flexibility in calculating time differences, don't
store just the hour and minute. By including the date along with the
hour and minute you can calculate time differences that go past midnight
and that span multiple days. Once you calculate the duration in minutes
using DateDiff you can still use John's expression or modify it to
handle days also.
James A. Fortune
(E-Mail Removed)