Date Difference Calculator

This days between two dates calculator shows the gap in years, months, weeks and days for any two dates, past or future.

Choose Two Dates

Formula & worked example

Formula: Days = end date − start date. Months are whole calendar months from the start date; leftover days are counted after them.

Example: 31 January 2024 to 1 March 2024 = 30 days, or 1 month and 1 day (4 weeks and 2 days).

Method & source: Gregorian calendar arithmetic; the same month rule used by the age calculator. See how we test our calculators.

Next step: try exact age on a specific date or working days between two dates.

What Is a Date Difference Calculator?

A date difference calculator tells you how much time lies between two dates. It answers the classic question “how many days between two dates?” and also expresses the gap in years, months, weeks and days.

Whether the dates are in the past, the future or one of each, the tool orders them for you and shows the elapsed time in every unit you might need.

How Our Date Difference Calculator Works

Pick a start date and an end date. The calculator compares them as calendar dates, so daylight saving and time zones cannot distort the result.

  • Calendar breakdown: Complete years, months and leftover days.
  • Total days: The exact day count between the two dates.
  • Weeks and days: For example 12 weeks and 3 days.
  • Hours and minutes: The gap converted into smaller units.
  • Any order: Dates entered back to front are swapped automatically.

The result is the same whichever direction you look at it, so you can use it to count up to a deadline or back from an event.

Why Measuring the Gap Between Dates Matters

Knowing the exact gap between two dates is useful far beyond curiosity – it underpins plans, contracts and personal milestones.

  • Count down to holidays, weddings, exams or product launches.
  • Measure how long a project, contract or subscription has run.
  • Work out notice periods, warranty windows and trial lengths.
  • Track pregnancy, travel or relationship milestones.
  • Check how many days remain until a deadline.

A days between two dates calculator saves you from counting on a calendar and avoids off-by-one errors around month ends and leap years.

Worked walkthrough: a project timeline

A project started on 14 January 2026 and is due on 30 September 2026. The calculator finds 259 days between the two dates, which is exactly 37 weeks. In calendar terms that is 8 months and 16 days, because 14 January plus eight months reaches 14 September and 16 more days reach 30 September. It also shows 6,216 hours and 372,960 minutes for teams that plan in smaller units. If you enter the dates in the wrong order, the tool swaps them and tells you, so you never get a negative answer by accident.

Practical tips for date difference calculations

  • The end date is not counted as an extra day: Monday to Tuesday is 1 day. Add one yourself if your rule counts both the first and last day.
  • Use the weeks-and-days result for pregnancy, project sprints and notice periods that are written in weeks.
  • For working-day gaps, use the Business Days Calculator instead – it removes weekends and holidays from the count.
  • Leap years are handled automatically, so a span that includes 29 February will correctly be one day longer.
  • Month lengths vary, so “months and days” depends on the start date. Rely on total days if you need an exact, unambiguous measure.

Frequently Asked Questions (FAQs)

Enter the start and end date and the calculator shows the total number of days between them. The end date is not counted as an extra day – Monday to Tuesday is 1 day.

Yes. Leap days such as 29 February are included automatically whenever they fall between your two dates.

Months have different lengths, so the calculator adds whole calendar months to the earlier date first and then counts the remaining days. This is the same method used to work out age.

Yes. If the start date is after the end date the calculator swaps them and tells you, so you always get a positive difference.

Yes. The result includes a “weeks and days” figure, plus the total weeks, hours and minutes.

Confirm official deadlines. Results follow the calendar rules described on this page. Contracts, court time limits and official deadlines can count days differently, so confirm any legally important date against the governing document. See our full disclaimer.