Time Between Dates Calculator

This measures the elapsed time between two moments, not just two dates. The distinction is the whole point of the page: a days between dates calculator treats both ends as midnight, which is fine for counting a notice period but useless for anything measured in hours. If a shift starts at 22:00 on Friday and ends at 06:30 on Saturday, the calendar difference is one day and the actual answer is eight and a half hours. Anything involving a duration rather than a date needs the time of day carried through, and that is what this does. It is the calculation behind an on-call period, an outage window, a travel time across a long journey, a rental or hire period charged by the hour, or a machine runtime. You get the result broken into days, hours and minutes as a person would say it, and the same span expressed wholly in each unit, since some purposes want a single number to multiply a rate against. Seconds are handled internally so nothing is lost to rounding in the middle of the calculation.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Advertise on this page
14 days 12 hours 30 minutes
elapsed time
Total hours348.5
Total minutes20,910
Total days14.52
Total weeks2.07

Both ends carry a time of day, which is what separates this from a plain day count. Daylight saving transitions are not adjusted for.

How it works

Each end is built into a moment from its date plus its hour and minute. The difference is taken in minutes, which avoids the rounding that creeps in when hours are calculated first. That total is then split: whole days are the minutes divided by 1,440, the remainder divided by 60 gives whole hours, and what is left is the minutes. The totals in each unit divide the same figure by 60 for hours, 1,440 for days and 10,080 for weeks.

Worked example

Take the defaults, midnight on 1 January to 12:30 on 15 January. That is 14 whole days plus 12 hours and 30 minutes. In minutes, 14 days is 14 x 1,440 = 20,160, plus 750 minutes for the twelve and a half hours, giving 20,910 minutes. Divided by 60 that is 348.5 hours, and divided by 1,440 it is 14.52 days. Note that a plain days between dates calculator would have returned 14 for the same inputs, losing the half day entirely.

Related calculators

Data sources: elapsed time is calculated from clock readings without adjusting for daylight saving transitions.