Are there any easy functions to get hours between two dates?
An example I have been away from work on 07.07.2003 10:00 to 08.07.2003 18:00. I want to get the hours that I have been away...
Use HourSpan or HoursBetween. Both take as input 2 TDateTime variables. HourSpan returns a result which includes fractional hours, whilst HoursBetween doesn't.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.