Skip to main content

Date Difference Calculator

Now

—

Input

Unit
Time zone

A number is an epoch timestamp; anything else is read as a date. Dates without an offset are in the selected time zone. Empty shows the current time.

Results

Press Convert or Ctrl/⌘+Enter to see the result.

Everything is processed in your browser. Nothing is uploaded.

About this tool: Date Difference Calculator

Find out how far apart two dates are, expressed in years, months, days, hours, minutes and seconds, as well as totals in each single unit. It is useful for ages, project durations, contract terms and counting down to deadlines.

Common uses

  • Reading a timestamp from a log line or database row
  • Working out how many days remain until a deadline
  • Checking when a scheduled job will fire next

Frequently asked questions

Are leap years handled?
Yes. The calculation uses the real calendar, so leap days and varying month lengths are counted correctly.
Can I add days to a date instead?
Yes, the date tools also add or subtract a duration from a starting point.