Date difference calculator
Count elapsed calendar days and equivalent weeks between two dates, excluding the end date.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
How many days until a holiday, between two invoices, or since a project started? This calculator counts the calendar days from a start date to an end date and shows the same span in weeks. It uses calendar dates only, so daylight-saving changes and time zones do not shift the answer.
The end date is not counted, which matches how most people count "days until": from Monday to Wednesday is 2 days. If you need both the first and the last day included, for example for a hotel stay counted in nights versus days, add one.
How to use it
- Pick the start date.
- Pick the end date (it can be earlier than the start; the result is then negative).
- Run the calculation.
- Read the number of days and the equivalent in weeks; add 1 if you want to include both end points.
How the calculation works
Both dates are converted to midnight UTC and subtracted; the difference in milliseconds is divided by 86,400,000. Leap days are counted naturally because real calendar dates are used.
(end UTC − start UTC) ÷ 86,400,000Worked example
From March 1, 2026 to December 25, 2026 is 299 days, or 42.71 weeks. A shop planning a Christmas campaign that starts on March 1 therefore has just under 43 weeks of preparation.
Sample input and result
2026-01-01 → 2026-02-01 = 31
Limitations
- Whole calendar days only; for hours and minutes use the time duration calculator.
- Gregorian calendar only.
- No public holiday awareness.
Last updated:
Frequently asked questions
Is the end date included?
No. The count is the number of days you move forward from the start to reach the end. Add 1 to include both dates.
Does it count only working days?
No, every calendar day counts. Use the working days calculator for Monday-to-Friday days.
Do leap years matter?
Yes, they are handled automatically: February 29, 2028 counts as a day.
Troubleshooting
The result is negative.
The end date is before the start date. Swap them for a positive count.
I am one day off from another calculator.
Some tools include both the start and the end date. Add 1 to match them.
I need months and days instead.
Use the age calculator, which reports completed years, months and days between two dates.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Age calculator
Calculate completed years, months and days at a reference date. Month-end anniversaries clamp to the last valid day.
Date & timeAdd or subtract days
Move a calendar date forward or backward by a whole number of days.
Date & timeWorking days calculator
Count Monday-to-Friday days. Public holidays are included, and the end date is excluded.
Date & time