Randomly

Time between dates

Pick two dates and see the gap in years, months and days, with the exact number of days and whole weeks underneath.

Duration

Invalid

Pick two valid dates.

Awaiting input
Breakdown
Y · M · D
Totals
Days · weeks

Related tools

Pick two dates and this time between dates calculator shows the gap as years, months and days, for example 2 years, 3 months, 14 days. Under that you'll see the total in days and in whole weeks. Both fields start on today's date, so to count from a past date to now, you only need to change the first one.

How to calculate time between two dates

  1. Set the From date and the To date.
  2. The breakdown and totals update as soon as both dates are valid.
  3. Order doesn't matter. If the To date is earlier, you get the same positive gap.
  4. Click the breakdown to copy it, or press Copy days to copy just the total day count.

What the breakdown shows

The headline result counts whole years and months first, then the leftover days. Below it are two totals: the exact number of days between the dates, and that number divided by 7 and rounded down to whole weeks. The footer shows the weekday of each date, which is handy for spotting that a deadline falls on a Sunday. Use the breakdown when you're telling a person how long something took, and the day count when you're putting it in a spreadsheet.

Things people use it for

  • Working out an exact age from a birth date.
  • Checking how long a job, lease or subscription has run.
  • Counting the days left until a deadline or trip.
  • Measuring a gap between two jobs on a CV.

Frequently asked questions

Does the calculator include both the start and end date?

No. It counts from the start date up to the end date, so 1 March to 2 March is 1 day. If you need an inclusive count, for example for a hotel stay or leave request, add 1.

Can I calculate time from a past date to today?

Yes. The To date already defaults to today, so just change the From date.

What's the difference between total days and the years, months and days breakdown?

Total days is a single exact number. The breakdown expresses the same gap in calendar units, which vary in length, so it's easier for people to read but less useful for arithmetic.

Does it handle leap years and month lengths?

Yes. It steps through real calendar months. If the start day doesn't exist in a later month, it uses that month's last day, so 29 February 2020 to 28 February 2021 counts as exactly 1 year. Daylight saving shifts are rounded away, so you never get a partial day.

Built and maintained by Bipul Kumar. Found a wrong number or a broken result? Tell me and I'll fix it.