Time Between Dates Calculator

Enter a start date and end date to calculate the time between two dates across every unit — from years and months down to days, hours, minutes, and seconds. Optionally include the end date in the count and toggle whether to show time components. Perfect for measuring durations, project timelines, or how long ago any event occurred.

Results

Total Days

--

Years

--

Months

--

Weeks

--

Remaining Days (after full weeks)

--

Total Hours

--

Total Minutes

--

Total Seconds

--

Frequently Asked Questions

How does the Time Between Dates Calculator work?

The calculator takes your start and end date (and optional times), computes the difference in milliseconds, then converts that into years, months, weeks, days, hours, minutes, and seconds. If you check 'Include end date', one extra day is added to the total before conversion.

What does 'Include end date in calculation' mean?

By default, the calculator counts from the start date up to (but not including) the end date — like counting fence posts between two points. Enabling this option adds one day so both the start and end dates are counted, which is useful for inclusive date ranges such as event durations or billing periods.

What is a year used in this calculation?

For the years breakdown, the calculator uses calendar-accurate year counting (accounting for leap years) by comparing the actual dates. One year equals approximately 365.25 days on average, but the display uses precise date arithmetic rather than a fixed multiplier.

How long ago was a specific date, like January 1, 2000?

Simply enter January 1, 2000 as the start date and today's date as the end date. The calculator will show you the exact number of years, months, weeks, days, hours, minutes, and seconds that have elapsed since then.

How long is 30 months in days?

30 months is approximately 912–913 days, depending on which specific months are included (since months have different lengths). For an exact answer, enter your specific start date and count 30 months forward using this calculator.

Can I calculate time between two dates that are in the past?

Yes — the calculator works for any two valid dates regardless of whether they are in the past, present, or future. Just make sure the start date comes before the end date to get a positive duration.

Does the calculator account for leap years?

Yes. Because the calculation is based on actual timestamps (milliseconds between dates), leap years are automatically accounted for — February 29 is treated as a real calendar day.

How do I calculate the number of working days between two dates?

This calculator returns calendar days (including weekends and holidays). For business/working days specifically, you would need a dedicated business days calculator that can exclude weekends and public holidays.

More Time & Date Tools