Randomly logo Randomly

Time between dates

Find the duration between two dates — broken down into years, months, and days, with exact totals in days and weeks.

Breakdown Y · M · D Totals Days · weeks

Duration

Invalid

Pick two valid dates.

A free time between dates calculator that finds the exact duration between any two dates — broken down into years, months, and days, with additional totals in whole days and weeks. Useful for calculating ages, project durations, contract lengths, and how long until or since any event.

How to calculate time between two dates

  1. Enter the start date in the first field.
  2. Enter the end date in the second field.
  3. The duration appears immediately in years, months, days, total days, and total weeks.
  4. Swap the dates if you need the result from the other direction.

What the breakdown shows

The result gives three views of the same duration: a decomposed breakdown (e.g. 2 years, 3 months, 14 days), a total-days count for precise calculations, and a total-weeks figure rounded down. The decomposed view is most readable for communicating durations; the total-days count is most useful in code and spreadsheets.

Practical uses for a date duration calculator

  • Calculating someone's exact age from their birth date to today.
  • Measuring how long a project, subscription, or contract has been running.
  • Counting down the days until a deadline, event, or holiday.
  • Determining the length of a gap between two employment dates on a CV.

Frequently asked questions

Does the time between dates calculator include the start and end dates?

The count is from the start date up to (but not including) the end date — the same convention used by most programming languages and date libraries.

Can I calculate time from a past date to today?

Yes. Set the start date to the past date and leave the end date at today, or type today's date manually.

What is the difference between total days and the years/months/days breakdown?

Total days is a single integer — exact and useful in code. The breakdown groups that same span into calendar units for easier human reading.

Does it handle leap years correctly?

Yes. The calculator uses standard calendar rules and accounts for leap years in both the total-day count and the month breakdown.

Other tools