Time & date

Days Between Dates Calculator

Count calendar days and full weeks between two dates.

Quick guide

How to use the Days Between Dates Calculator

  1. Enter or choose start date, end date.
  2. Select Count days.
  3. Review the main result, supporting breakdown, and step-by-step calculation notes.
  4. Copy the output or download the generated file when available.

What this tool does

Count the exact number of calendar days and full weeks separating any two dates using UTC midnight normalization. Normalizing both dates to UTC avoids the classic off-by-one-day bug caused by 23-hour and 25-hour daylight saving transitions in local browser time.

Elapsed Days = |UTC(End Date) − UTC(Start Date)| ÷ 86,400,000 ms

Calculation method

  1. Parse both dates as calendar dates anchored to UTC midnight (00:00:00Z).
  2. Subtract the two timestamps and take the absolute difference so date order never causes a negative error.
  3. Divide elapsed milliseconds by 86,400,000 and split the total into full 7-day weeks plus remaining days.

Example: counting days from January 1, 2026 to April 1, 2026

Input: Start date: 2026-01-01; End date: 2026-04-01

Result: 90 days (12 full weeks and 6 days)

2026 is not a leap year, so January contributes 31 days, February 28 days, and March 31 days: 31 + 28 + 31 = 90 days (12 weeks and 6 days).

Practical uses

  • Counting contract or billing cycle days
  • Planning travel countdowns and visa stay limits
  • Checking project milestone windows
  • Calculating exact days across leap years

Accuracy tips and common mistakes

  • The count is exclusive of one endpoint (for example, Jan 1 to Jan 2 equals 1 day). Add 1 if your policy counts both the start and end day inclusively.
  • Leap days (February 29 in years divisible by 4, excluding century years not divisible by 400) are included automatically.
  • You can enter the dates in either order; the tool always returns the positive span between them.
Frequently Asked

Days Between Dates Calculator – Frequently Asked Questions

Common questions, edge-cases, and mathematical explanations.

Does the day count include both the start date and end date?

No—it reports the elapsed difference (end minus start), so Monday to Tuesday is 1 day. For inclusive day counts (such as hotel or leave spans covering both endpoints), add 1 day.

Are leap years handled automatically?

Yes. Standard Gregorian calendar leap years (such as 2024 and 2028) include February 29 in the day count automatically.

Why does UTC normalization matter for counting calendar days?

In local timezones, spring-forward and fall-back daylight saving days are 23 and 25 hours long. Anchoring to UTC midnight guarantees every calendar day equals exactly 24 hours.

Analytics preferences

Optional Google Analytics cookies help us understand visits and improve our tools. Analytics is off until you allow it. Your tool inputs and files are never included in our analytics events. Read our privacy policy.

Analytics is off.