By subtracting two dates you get the result that shows the number of days between the dates. You will need to recalculate this number to get the desired time. For example, to get the number of hours, you need to divide the difference by 24, and so on.