calculators.dev

Days Between Dates

Find the exact number of days between any two calendar dates. Toggle inclusive counting when you need to count both the start and end day.

Calculate

Default result: 180

Off counts the difference (nights). On counts both endpoints, adding one day.

Result

180

Days between

Weeks
25
Remaining days
5
180

How to calculate

Enter a start date and an end date. The calculator counts the whole calendar days between them and breaks the total into weeks and days.

days = |endDay - startDay|; inclusive adds 1. Day counts use UTC calendar days, so the result is unaffected by daylight saving time.
Example calculation

From January 1, 2026 to June 30, 2026 is 180 days (exclusive), which is 25 weeks and 5 days.

totalDays
180 days
breakdown
25 weeks and 5 days

Assumptions

  • By default the count is exclusive (the standard date difference, e.g. Jan 1 to Jan 2 is 1 day). Turn on the inclusive toggle to count both endpoints.
  • Dates are counted as whole UTC calendar days, so daylight saving transitions never shift the result by an hour.

Common mistakes

  • Expecting an inclusive count by default — the default is the standard exclusive difference.

Frequently asked questions

Does the count include both the start and end date?

By default no — the result is the difference between the two dates. Turn on the inclusive toggle to count both endpoints.

Why is the result the same across daylight saving changes?

The calculator counts whole UTC calendar days rather than subtracting timestamps, so a clock change never adds or removes an hour from the result.