Date & time Difference

Time between dates

From
To
Counting
Time between Enter both dates
Calendar breakdown first, totals below

Two dates in, and the length of that date range comes back as a calendar breakdown plus the total in every unit. Ten years is 3,653 days, 87,672 hours or 5.26 million minutes. The same panel counts down to a date still ahead, and counts months as whole calendar months rather than 30-day blocks.

How to measure time between dates

1 Pick whether you are measuring between two dates, counting down to one, or counting whole months.
2 Enter the dates. Order does not matter: the span is the same either way round.
3 Choose whether both end days belong to the period. Inclusive counting adds exactly one day.
4 Read the calendar breakdown first, then whichever total unit your calculation needs.

The hour and minute figures here assume midnight to midnight, since only dates are entered. That makes them exact multiples of 24 and 1,440, which is useful for a sense of scale and useless if what you need is the gap between two specific moments. Anything crossing a daylight saving boundary gains or loses an hour in local time, which is precisely why the calculation is done in UTC.

The months figure is the one that produces arguments. A calendar month runs from a date to the same date in the next month, so 15 January to 15 March is exactly two months whatever February happens to be, while a month-end start clamps instead: 31 January to 1 March comes out as one month and one day, not two days. That span is 29 calendar days in a common year, so dividing by an average month of 30.44 days gives 0.95 months — under one where the calendar count says just over one, which is the disagreement in miniature. Neither method is wrong; they answer different questions, and the calendar one is what a tenancy or a contract term means.

Finance uses a third method again, and it is worth knowing about because it explains a whole class of small discrepancies. Many bonds, loans and swaps accrue interest on a 30/360 day count, which declares every month thirty days long and every year 360, so a coupon period is always the same size and the arithmetic needs no calendar at all. It is a deliberate fiction with a name, and it is the usual reason an interest figure sits a day or two away from what this panel reports.

The last decision the panel asks you to make is whether both end days count. A holiday from Monday to Friday is five days because you occupy both ends; a countdown from Monday to Friday is four because you are measuring a gap. The same ambiguity sits under the bare word "days": thirty working days is 42 calendar days, six weeks exactly, which is why a document that means one of them should say so.

What people use it for

  • Getting a sense of scale for a long span
  • Counting down to a launch or an event
  • Checking a contractual deadline in calendar days
  • Working out length of service
  • Measuring a booking or leave period
  • Stating the length of a date range in a report
  • Using it as a week, month or year counter
  • Working out nights against days for a hotel stay
  • Reporting a project length in every unit
  • Choosing how to phrase a duration
  • Counting a subscription term in months
  • Counting months of service or tenancy
  • Tracking a pregnancy in weeks
  • Checking an anniversary

Questions

Enter both. The elapsed span reads as a breakdown in years, months and days, with the total in every other unit underneath it.

Microsoft — DAYS360, the 30/360 day count as spreadsheets implement itCivil Procedure Rules, rule 2.8 — how clear days are countedCompanies Act 2006, section 360 — clear days for a members’ notice periodRFC 3339 — date and time on the internet
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding