J
John
Hi
I am trying to find difference between two time values in hours. I have
tried the following?
? dateDiff("h", #23:00:00#, #23:00:00#) gives 0 as expected.
? dateDiff("h", #00:00:00#, #23:00:00#) gives 23??? should it not be 1 as
00:00:00 (12 midnight) is only one hour after 23:00:00 (11 pm)?
? dateDiff("h", #01:00:00#, #23:00:00#) gives 22. Should it not be 2 as
01:00:00 (1 am) is two hour after 23:00:00 (11 pm)?
What is going on? How can I get the desired time difference values?
Thanks
Regards
I am trying to find difference between two time values in hours. I have
tried the following?
? dateDiff("h", #23:00:00#, #23:00:00#) gives 0 as expected.
? dateDiff("h", #00:00:00#, #23:00:00#) gives 23??? should it not be 1 as
00:00:00 (12 midnight) is only one hour after 23:00:00 (11 pm)?
? dateDiff("h", #01:00:00#, #23:00:00#) gives 22. Should it not be 2 as
01:00:00 (1 am) is two hour after 23:00:00 (11 pm)?
What is going on? How can I get the desired time difference values?
Thanks
Regards