Days Between Dates Calculator – Date Difference, Weeks & Weekdays
Calculate elapsed or inclusive calendar days between two dates, then break the range into weeks, weekdays, weekends, leap days, and an exact years-months-days calendar span.
Choose two calendar dates
Browser-based calculation: the selected dates and all date-difference calculations are handled locally on this page and are not submitted to a Utiliverse server.
How the Days Between Dates Calculator Works
The Utiliverse Days Between Dates Calculator is built for a deceptively common question: how many calendar days separate one date from another? A reliable answer must account for months with different lengths, leap years, reversed date order, and the difference between elapsed-day counting and inclusive date counting. This tool handles those details automatically and keeps the calculation focused on calendar dates rather than local clock times.
By default, the main result reports the standard date difference. If the start date is January 1 and the end date is January 2, the difference is one day because one calendar-day boundary separates the dates. If both dates are January 1, the difference is zero. When you turn on “Count both start and end dates,” the tool switches to inclusive counting. Under that method, January 1 through January 2 contains two calendar dates.
Why this calculator avoids local-midnight timestamp subtraction
A common shortcut is to create two local-midnight timestamps, subtract them, and divide by 86,400,000 milliseconds. That can create errors around daylight-saving transitions because a local calendar day can contain 23 or 25 clock hours. Utiliverse instead converts each selected date into a serial Gregorian calendar-day number using the year, month, and day components. Because the calculation is date-only, moving clocks forward or backward does not incorrectly add or remove a calendar day.
The same approach allows the tool to work consistently across leap years. Gregorian leap-year rules add February 29 to years divisible by four, except century years that are not divisible by 400. That means 2000 was a leap year, 1900 was not, and 2024 was. The calculator also reports how many February 29 dates fall inside the counted range.
Total days versus years, months, and days
The total-day result is the most precise single-number answer because every counted unit is one calendar day. The calendar-span result expresses the interval as complete years, complete months, and remaining days. Those values cannot be replaced with fixed assumptions because months have 28, 29, 30, or 31 days and years can have 365 or 366 days. The tool therefore advances through calendar years and months and then calculates the remaining day difference.
The weeks-and-days result divides the selected total into complete seven-day weeks plus a remainder from zero through six days. This can be useful for project schedules, school assignments, fitness plans, treatment schedules, or any workflow commonly expressed in weeks.
Weekday and weekend counting
The calculator separately counts Monday through Friday as weekdays and Saturday and Sunday as weekend days. Under standard elapsed counting, the earlier boundary date is excluded and the later boundary date is included so the weekday-plus-weekend total matches the displayed elapsed-day count. With inclusive counting enabled, both endpoint dates are included.
The weekday figure is not a country-specific business-day calendar. Public holidays, company closures, regional observances, and personal work schedules are not included. A Monday-to-Friday count is useful for rough planning, but payroll, legal, banking, shipping, or compliance deadlines may require an official holiday calendar or organization-specific rules.
Days Between Dates Quick Reference
The calculator above answers several related date-difference questions at once. The main total shows the number of days between two dates, while the supporting results break the same range into weeks, weekdays, weekend days, leap days, and an exact calendar span.
| Question | How this calculator answers it | Example |
|---|---|---|
| How many days are between two dates? | Uses the absolute elapsed calendar-day difference by default. | January 1 to January 10 = 9 elapsed days. |
| How many days including both dates? | Turn on inclusive counting to include the start and end calendar dates. | January 1 through January 10 = 10 inclusive dates. |
| How many weeks between dates? | Divides the selected total into complete 7-day weeks plus remaining days. | 17 days = 2 weeks, 3 days. |
| How many weekdays between dates? | Counts Monday through Friday using the selected elapsed or inclusive range. | Weekends are reported separately. |
| How many weekend days? | Counts Saturdays and Sundays in the selected range. | Useful for rough planning, not holiday-aware business-day rules. |
| What is the exact calendar span? | Counts complete years and months first, then the remaining days. | Not calculated by assuming every year is 365 days or every month is 30 days. |
| How many leap days occur? | Counts February 29 dates that fall inside the selected range. | Useful for long ranges that cross leap years. |
| What if the dates are reversed? | The main total remains absolute while the Direction result shows the signed difference. | Earlier end dates are clearly identified. |
How many days are between two dates?
Enter the first date and the second date, then read the large result at the top of the results panel. In standard elapsed mode, the calculator measures how many calendar-day boundaries separate the two dates. For example, January 1 to January 2 is one elapsed day, and January 1 to January 31 is 30 elapsed days.
Elapsed days vs. inclusive days
Elapsed counting measures the distance between the dates. Inclusive counting counts the calendar dates themselves. If a range runs from June 1 through June 5, the elapsed difference is 4 days, while the inclusive count is 5 calendar dates. The checkbox makes that distinction explicit so you can match the rule used by your schedule or policy.
Weeks and days between dates
The Weeks + days result converts the selected total into complete seven-day weeks plus a remainder. This is useful when a project, course, treatment plan, reservation, or personal goal is easier to understand in weeks than as one large day count.
Weekdays and weekends between dates
The weekday total counts Monday through Friday and the weekend total counts Saturday and Sunday. It does not remove public holidays or organization-specific closures, so it should not be treated as a legal, banking, shipping, payroll, or market business-day calculator.
Years, months, and days between dates
The Calendar span result expresses the interval using complete calendar years, complete calendar months, and remaining days. Because months and years vary in length, this is calculated with actual calendar rules rather than by dividing total days by 30 or 365.
Methodology and Counting Rules
The calculator treats each input as a calendar date, not as a timestamp. Internally it maps the year, month and day to a serial Gregorian day number and compares those day numbers. This avoids errors caused by local-midnight timestamp subtraction during daylight-saving changes.
Worked example: elapsed vs. inclusive
Start: January 1
End: January 2
Elapsed difference: 1 day
Inclusive count: 2 calendar dates
Worked example: leap year
February 28, 2024 through March 1, 2024 crosses February 29 because 2024 is a leap year. The elapsed difference is 2 days. The leap-day counter reports February 29 when it falls inside the counted range according to the selected counting method.
Worked example: reversed dates
If the end date comes before the start date, the main result still shows the absolute distance between the two dates. The Direction card separately shows whether the signed difference is positive, negative or zero.
Why the result is DST-safe
A local date can begin on a 23-hour, 24-hour or 25-hour civil day depending on daylight-saving transitions. Because this calculator never relies on “midnight-to-midnight milliseconds ÷ 86,400,000,” those clock-length changes do not alter the calendar-day result.
Weekdays are not business days
The weekday count is intentionally simple: Monday through Friday. It does not remove public holidays, bank holidays, market closures, shipping holidays or organization-specific days off.
Historical calendar limitation
The calculator uses the proleptic Gregorian calendar for all supported years from 0001 through 9999. That means it extends modern Gregorian leap-year rules backward before historical adoption dates. It is not intended to reconstruct Julian-calendar usage or country-specific historical calendar transitions.
Related Utiliverse Tools
Last reviewed: October 2026 · Date arithmetic, inclusive-count logic, weekday/weekend counting and leap-year handling reviewed against the current implementation.
Practical Use Cases
Project schedules and deadlines
Project managers, freelancers, students, and developers can compare a start date with a delivery date to understand the exact calendar span. The weekday count gives a quick view of how much of that period falls on conventional Monday-to-Friday workdays, while the total-day count remains useful for continuous schedules and service windows.
Travel, reservations, and event planning
Travel plans often involve both elapsed nights and inclusive calendar dates. A trip beginning on June 1 and ending on June 5 has four elapsed days between the dates, while the traveler touches five calendar dates when both endpoints are included. Seeing both methods helps avoid confusion when comparing itineraries, rental periods, camps, conferences, or multi-day events.
Age milestones and anniversaries
When you want to know exactly how many days separate a birth date, wedding date, launch date, or other milestone from another date, the total-day result provides a direct count. The calendar-span result complements it with a human-readable years-months-days representation. Formal legal age calculations can use jurisdiction-specific rules, so official requirements should control when eligibility matters.
Contracts, subscriptions, and service periods
Date differences can help verify the length of a subscription, trial, warranty period, lease interval, or service window. Whether endpoints are included can materially change the answer, so this tool makes that choice explicit rather than assuming one interpretation. Follow the wording in the applicable contract or policy when a deadline has legal or financial consequences.
School, fitness, and personal goals
Teachers and students can calculate the number of days until an exam or between assignment milestones. Fitness plans, reading challenges, savings goals, and habit streaks can also be mapped across a specific number of days or weeks. Quick-range buttons make it easy to create a date exactly 7, 30, 90, or 365 days after the selected start date.
Frequently Asked Questions
How do I calculate the number of days between two dates?
Choose the start and end dates. By default, the calculator returns the absolute elapsed calendar-day difference between them.
What is the difference between elapsed days and inclusive days?
Elapsed counting measures the number of day boundaries crossed. Inclusive counting includes both the start and end calendar dates, so it adds one to the absolute elapsed difference.
How many days are there from one date to another?
The main result shows the absolute number of calendar days separating the two dates. If the second date is earlier, the Direction section also shows a negative signed difference.
How do I calculate weeks between two dates?
The calculator divides the selected day total into complete seven-day weeks plus the remaining number of days.
How are weekdays between dates counted?
Weekdays are Monday through Friday. Under elapsed counting, the earlier boundary date is excluded and the later boundary date is included. Inclusive mode includes both endpoints.
Are public holidays excluded from the weekday count?
No. The weekday total is a simple Monday-through-Friday count and does not remove public holidays, bank holidays, company closures, or jurisdiction-specific non-working days.
How are weekends between dates counted?
Weekend days are Saturdays and Sundays inside the selected elapsed or inclusive range.
Does daylight saving time affect the result?
No. The calculator performs date-only calendar arithmetic rather than subtracting local-midnight timestamps, so 23-hour or 25-hour local days do not change the calendar-day difference.
What if the end date is before the start date?
The main total still shows the absolute number of days between the dates. The Direction section identifies that the end date is earlier and displays the signed difference.
How are leap years handled?
The tool follows Gregorian leap-year rules and separately reports February 29 dates included in the counted range.
Why can years-months-days differ from total days divided by 30 or 365?
Calendar months and years have variable lengths. The calculator counts complete calendar years and months first, then calculates the remaining days.
Is the weekday total the same as a legal or banking business-day count?
Not necessarily. Legal, banking, shipping, payroll and compliance calendars may exclude specific holidays or use jurisdiction-specific rules.
Why does the calculator use the Gregorian calendar for very old dates?
The tool uses proleptic Gregorian rules consistently for years 0001 through 9999 and does not reconstruct historical Julian-calendar use or country-specific adoption dates.
Can I use the result for a legal filing or contract deadline?
Use caution. This tool provides calendar arithmetic only. The governing legal, contractual or organizational rule should determine which dates, weekends or holidays count.