Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Formulae for hours calc

What is a good formulae to use to calculate the number of hours between 2 dates & times.
i.e. date1 is internal date, time1 is internal time - ex time()
date2 is internal date, time2 is internal time - ex time()

hrs = date2+time2 - date1+time1

date1 can be LE date2


Sign In or Register to comment.