Quick guide
How to use the Days Between Dates Calculator
- Enter or choose start date, end date.
- Select Count days.
- Review the main result, supporting breakdown, and step-by-step calculation notes.
- 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.
Calculation method
- Parse both dates as calendar dates anchored to UTC midnight (00:00:00Z).
- Subtract the two timestamps and take the absolute difference so date order never causes a negative error.
- 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.