Free time & date tool

Date Difference Calculator

Count the days between two dates to plan a trip, measure a project or compare anniversaries. You can also see the gap in years, months and days, and choose whether to count the end date.

Calculate days between two dates

Dates are compared in chronological order. Inclusive counting includes both dates, even when reversed.

Using the result

  • 2024-02-28 to 2024-03-01 is 2 elapsed days.
  • Including the end adds one day before both outputs are computed.
  • A calendar month is not a fixed number of days.

How to use the Date Difference Calculator

  1. Enter valid start and end dates from years 0001–9999.
  2. Either input order is accepted; Swap dates exchanges the fields. Results use the earlier and later dates.
  3. Leave Include end date off to measure the gap between dates. Turn it on to count both the first and last date.
  4. Read total days for a uniform count and the years/months/days breakdown for calendar milestones.

Understand the breakdown

The tool counts complete years, then complete months, then leftover days. If the matching day does not exist in a month, it uses that month’s last day. A calendar month can therefore have a different length from one result to another.

Include end date adds one day before calculating both the total and the years, months and days. For a one-day event, entering the same date twice gives 0 without this option and 1 with it.

Use date counts for date questions

UTC is used as a stable representation of date labels, not as a claim that your event occurred at UTC midnight. A New York DST weekend still has the expected number of date boundaries here.

No time of day, holiday policy, historical calendar reform or legal deadline rule is modeled. The Gregorian calendar is extended backward for early years. Weeks are total days divided by seven and displayed to two decimals.

Examples

Three-day visit

A visit from June 10 to June 12, 2026 has a gap of 2 days. Turn on Include end date to count all 3 dates of the visit: June 10, 11 and 12.

A month ending in February

January 31 to February 29, 2024 is 1 calendar month but 29 total days. February has no 31st, so this tool uses its last day.

Frequently asked questions

Can I use the month count as a billing period?

Only if your agreement uses this same clamped anniversary convention. For example, January 31 to February 29, 2024 counts as one month here. Contracts can use different day-count and partial-month rules; this tool does not calculate charges.

Why does one month sometimes mean 29 days?

The month count uses calendar anniversaries. January 31 to February 29, 2024 is one calendar month, while the continuous interval is 29 days.

Does Include end date change the calendar breakdown?

Yes. It adds one date boundary to the endpoint before calculating years, months, remaining days and total days.

Does a DST weekend change this day count?

No. These inputs are dates only, represented in UTC for counting. Use Time Duration to measure elapsed hours between local date and times.

Will reversed dates produce a negative calendar age?

This date comparison sorts the endpoints and reports a nonnegative span. Use the Days Until countdown when direction matters. Include end date always includes the later date after sorting.

Sources & methodology

Related tools

More time & date tools