Skip to content

Date Difference CalculatorNew

Days, weeks and months between two dates.

Runs in your browser · free · no sign-up

About the Date Difference Calculator

How many days until an event, how long ago something happened, or how long a contract runs: pick two dates and get the answer in every unit.

How long is a contract, how many days until an exam, how old is an invoice, or how long did a project really take? Counting on a calendar is slow and it is easy to miss a day at the start or end of the range. This calculator gives the exact gap between two dates for students, freelancers, HR teams, lawyers and anyone planning ahead.

Pick a start date and an end date (today is filled in by default). The result shows the period in years, months and days, plus the total number of days, weeks and remaining days, total months and hours. By default the end date is not counted, matching normal date arithmetic: from Monday to Tuesday is one day. Tick “Include the end date” when both days should count, such as for leave periods, hotel stays measured in days, or event durations. If the end comes before the start, the tool still calculates the gap and tells you the order is reversed.

How to use the Date Difference Calculator

  1. 1Pick the start date.
  2. 2Pick the end date (today by default).
  3. 3Read the difference in years, months, days and totals.

Key features

  • Years, months and days between dates.
  • Total days, weeks, months and hours.
  • Option to include the end date.
  • Handles leap years with real calendar dates.
  • Works with dates in either order.

Practical uses

  • Counting days until an exam, wedding or trip.
  • Measuring the length of a rental agreement or employment.
  • Checking how many days an invoice is overdue.
  • Calculating the duration of a project for a report.

Example

From 1 January 2026 to 31 December 2026 is 364 days by default. With “Include the end date” ticked it becomes 365 days, which is the number of days in the year that a leave or subscription period actually covers.

Tips and common mistakes

  • Decide whether both days should count before comparing your answer with someone else’s; it explains most disagreements.
  • For business deadlines that skip weekends, use the Working Days Calculator instead.
  • Use the weeks and days figure for pregnancy-style or project-sprint counting.

Limitations

  • Only whole days are counted; times of day are ignored.
  • Public holidays are not taken into account.

Privacy

Dates are processed in your browser. Nothing is stored or sent to a server.

Frequently asked questions

Does it count the end date?

Not by default, like most date maths. Tick “Include the end date” to count both days.

Are leap years handled?

Yes. Real calendar dates are used, so 29 February is counted when it exists.

Can the end be before the start?

Yes. The tool shows the gap and notes that the order is reversed.

How are months counted when they have different lengths?

Full calendar months are counted first, for example 15 January to 15 March is 2 months, then the remaining days are added.

Related tools

Age CalculatorFind exact age in years, months and days.
Add Days to DateNewAdd or subtract days, weeks, months, years.
Working Days CalculatorNewCount business days between dates.
Online StopwatchNewAccurate stopwatch with laps.