Days Between Dates Calculator
Pick a start date and end date to calculate the number of calendar days between them. You can also include the end date and view weekday totals.
Tip: If the end date is before the start date, the calculator still works and shows a signed result.
What this date calculator is for
A days-between date calculator helps you quickly measure the number of days separating two dates. This is useful for personal planning, business timelines, legal deadlines, budgeting windows, travel planning, subscription billing cycles, and project management.
Instead of manually counting days on a calendar (and risking errors), you get a reliable answer in seconds. The calculator above uses date-only logic in UTC format, which avoids common timezone and daylight saving issues.
How to use the calculator
Step-by-step
- Select your start date.
- Select your end date.
- Choose whether to include the end date.
- Click Calculate Days.
You will see:
- Total calendar days between the two dates.
- Signed day difference (positive, zero, or negative).
- Weekdays (Monday through Friday) in the selected range.
- Weekend day count in the selected range.
Inclusive vs exclusive date counting
Exclusive counting (default style)
Exclusive mode does not count the ending day itself. For example, from March 1 to March 2 is 1 day.
Inclusive counting
Inclusive mode counts both boundary dates. For example, from March 1 to March 2 becomes 2 days (March 1 and March 2).
Use inclusive mode when your process includes both start and finish days, such as challenge streaks, booking windows, and compliance periods.
Real-world examples
- Project planning: Know exactly how many days remain until launch.
- HR and payroll: Measure days in a pay cycle or notice period.
- Finance: Track holding periods for investments and savings goals.
- Education: Count days until exams, terms, or assignment deadlines.
- Travel: Calculate trip length for visas, accommodations, and itinerary plans.
How the math works
Core formula
The calculator converts each selected date into a standardized UTC midnight timestamp and computes:
(End Date - Start Date) / 86,400,000
There are 86,400,000 milliseconds in one day, so this gives an exact day difference for date-only values.
Why UTC matters
When people use local time for date math, daylight saving transitions can introduce off-by-one errors. UTC avoids that by normalizing both dates to a consistent baseline.
Common mistakes this helps you avoid
- Manually counting calendar squares and skipping/duplicating a day.
- Forgetting leap years in February.
- Mixing inclusive and exclusive logic without realizing it.
- Assuming weekdays and calendar days are the same.
- Ignoring negative differences when end date comes first.
Quick FAQ
Does this handle leap years?
Yes. Native date handling automatically accounts for leap years and varying month lengths.
Can I calculate business days only?
The tool currently reports weekday totals (Monday to Friday) in addition to calendar days. That gives you a fast approximation for business-day planning.
What if both dates are the same?
In exclusive mode, the difference is 0 days. In inclusive mode, the count is 1 day because that date is included.
Final thoughts
If your schedule, budget, or deadlines depend on accurate timing, a days-between date calculator is one of the simplest ways to reduce planning errors. Use it before committing to due dates, contracts, or milestone promises, and always confirm whether your situation requires inclusive or exclusive counting.