Calculators

Date Difference Calculator

Quick answer

The difference between two dates is the number of days from the earlier date to the later one. Enter a start and end date below to get the gap in days, weeks, and years-months-days. The end date is not counted unless you tick the include option.

Found this useful? WhatsApp X LinkedIn

How it works

Dates are compared at midnight UTC so daylight-saving changes never add or remove a day.

Examples

Example1 Jan 2025 to 31 Dec 2025364 days (365 if the end date is included).
Example10 Mar 2025 to 10 Apr 202531 days, or 1 month.

Want the full walkthrough? Read the step-by-step guide.

About the date difference calculator

Counting the days between two dates sounds simple until leap years, month lengths and inclusive versus exclusive counting get involved. This tool compares dates at midnight UTC so daylight saving never adds or removes a day, then shows the gap in days, weeks and in years, months and days. An option lets you include the end date, which matters for bookings, notice periods and billing.

When to use it

  • Calculating notice periods, warranty periods and deadlines.
  • Counting days to an exam, trip or event.
  • Finding the length of a project or contract.
  • Working out how many days you were employed or enrolled.

Tips for accurate results

  • Decide whether the end date counts. A hotel stay from the 1st to the 3rd is 2 nights, but a three-day event on those dates covers 3 days.
  • Use the weeks figure for project planning and the years-months-days figure for age-style statements.
  • The start and end can be in any order; the tool swaps them.

Common mistakes to avoid

  • Assuming every month has 30 days.
  • Forgetting that February has 29 days in leap years.
  • Counting both the start and end dates when only one should count.

Frequently asked questions

How many days between two dates?

Subtract the earlier date from the later date. This tool does it automatically, including leap years.

Does it include the end date?

Not by default. Tick "include end date" to add one day.

Can the start date be later than the end date?

Yes. The tool swaps them and still shows a positive gap.

Written by Jasveer Raj, software engineer · Last updated 3 Nov 2026

Esc