Date & Time

Time Difference Between Two Dates

Measure the difference between two dates or times — broken into days, hours, minutes, and seconds, plus totals in each unit.

Two dates (one per line)
Output

Result appears here after you select

{ } How to use

  1. Enter the start date on the first line and the end date on the second.
  2. Dates, date-times, and Unix timestamps are all accepted.
  3. Select Process to see the breakdown and totals.

{ } How it works

Time Difference Between Two Dates works on the text you provide. Select Process ▸ and it runs entirely in your browser — nothing is uploaded to a server — then shows the result in the Output panel.

Input

  • Two dates (one per line) — paste or type your input in the left panel (use Sample for an example)

Output

TXT text — copy or download it from the Output panel.

{ } Common uses

  • Count the days between a start and an end date.
  • Find out how long ago something happened, to the second.
  • Turn the gap between two timestamps into hours for billing.

{ } Limitations

  • The result is a magnitude, never a direction. The two dates are subtracted and the absolute value taken, so swapping the lines gives the same answer and nothing tells you which came first.
  • The breakdown stops at days. There is no months or years line, because months differ in length and any figure would depend on which months the span happened to cross.
  • Both lines are read as UTC unless they state an offset, so a span crossing a daylight-saving change is measured as real elapsed time rather than in wall-clock hours.

{ } FAQ

Is my data uploaded to a server?

No. Everything runs locally in your browser — your files never leave your device.

Can I process more than one file at once?

This tool works on one input at a time.

Is this tool free?

Yes — it’s completely free and needs no sign-up.

Why is there no answer in months or years?

Because there is no single correct one. The number of days in a month varies, so “one month” from 31 January to 28 February is not the same span as from 1 June to 1 July. Total days and total seconds are exact; months would be an approximation dressed up as a fact.