I have 3 DateTime Fields Reported, onsite and offsite
T_reported =15/06/2005 04:00:00 PM
T_OnSite = 15/06/2005 06:00:00 PM
T_OffSite = 15/06/2005 07:00:00 PM
INT((T_ONSITE-T_REPORTED)/60) = 120 Minutes
INT((T_OFFSITE -T_ONSITE)/60) = 59 Minutes
I'm thinking rounding errors and tried Ceiling, but that gives me 121 and 60!
Any thoughts?
I scoured the Threads and most people are using the INT to convert into minutes for datediff functions are they getting this rounding problem and have never noticed?
Regards
Paul
T_reported =15/06/2005 04:00:00 PM
T_OnSite = 15/06/2005 06:00:00 PM
T_OffSite = 15/06/2005 07:00:00 PM
INT((T_ONSITE-T_REPORTED)/60) = 120 Minutes
INT((T_OFFSITE -T_ONSITE)/60) = 59 Minutes
I'm thinking rounding errors and tried Ceiling, but that gives me 121 and 60!
Any thoughts?
I scoured the Threads and most people are using the INT to convert into minutes for datediff functions are they getting this rounding problem and have never noticed?
Regards
Paul