Calculator Between Two Dates

Calculator Between Two Dates

Calculate the exact time between two dates in days, weeks, months, years, weekdays, weekend days, hours, and minutes.

Date difference calculator for planning and counting days

Use this calculator between two dates to measure calendar days, full weeks, remaining days, weekdays, weekend days, and a year-month-day breakdown. It is useful for deadlines, travel, projects, billing periods, events, school dates, and personal milestones.

By default, the calculator excludes the end date, which is common for elapsed-time calculations. Turn on inclusive counting when the final date should count as a full day.

The calculation uses date-only values, so daylight saving time changes do not change the day count.

The first date in the range.

The final date in the range.

Choose whether the final date counts as one day.

Used for week-start and week-end labels.

Controls weekday and weekend totals.

Displayed in the result summary if entered.

How to use the calculator between two dates

  1. Enter the start date: Choose the first day of the period you want to measure.
  2. Enter the end date: Choose the final date for the deadline, trip, event, or range.
  3. Choose the counting method: Exclude the end date for elapsed days, or include it when the final date should count.
  4. Select the weekend pattern: Use Saturday and Sunday for a typical workweek, or adjust the setting for a different schedule.
  5. Review the result: Check total days, weeks, months, weekdays, weekend days, hours, and minutes.

Formula for days between dates

A calculator between two dates finds the number of calendar days by subtracting the start date from the end date. The result is the elapsed number of midnights between the two dates.

Calculate the number of days between two dates by subtracting the earlier date from the later date. Most online date calculators also calculate weeks, months, and years between dates. Dedicated business day calculators exclude weekends and holidays to provide accurate workday totals; this calculator estimates weekdays from the weekend pattern you choose, but does not remove public holidays.

If the start date is May 16, 2026 and the end date is May 20, 2026, the standard elapsed count is 4 days. If you include the end date, the count becomes 5 days.

Days between dates = end date - start date

Inclusive days = end date - start date + 1

Weeks = total days / 7

Month and year results are calendar-based, so they depend on the actual months involved. For example, one month can contain 28, 29, 30, or 31 days.

Common date range examples

Swipe to view the table
Date range Exclude end date Include end date Typical use
Monday to Friday 4 days 5 days Work schedules, school weeks, short trips.
Jan 1 to Jan 31 30 days 31 days Monthly reports, rent periods, subscription windows.
May 16 to Dec 31, 2026 229 days 230 days Event countdowns, project planning, year-end deadlines.
Birthday to next birthday 365 or 366 days 366 or 367 days Age-related planning, milestones, anniversaries.

Calendar days vs business days

Calendar days count every date in the range. Business days usually remove weekends, and sometimes holidays, from the total. This calculator counts weekdays based on the weekend pattern you choose, but it does not subtract public holidays.

Use calendar days for

Travel length, countdowns, subscriptions, rental periods, pregnancy or event milestones, and personal plans.

Use weekdays for

Work estimates, school periods, project schedules, shipping expectations, staffing, and service-level timelines.

Check holidays for

Legal deadlines, payroll, banking, court dates, tax filing, contract notices, and official processing windows.

When to include the end date

Inclusive counting is helpful when both the first and last dates should count as active days. Standard elapsed counting is better when you are measuring time passed from one date to another.

Trips and bookings

A hotel stay usually counts nights, not inclusive dates. A conference pass may count every attended date, including the final day.

Projects and deadlines

Elapsed days show how long remains until a deadline. Inclusive days show how many dates are available to work.

Billing and service periods

Some contracts include both boundary dates, while others count completed days. Always match the method in the agreement.

Which date result should you use?

Different questions need different date outputs. Use this lookup table to choose the clearest result before you copy a number into a spreadsheet, planner, invoice, schedule, or report.

Question Best result Why it helps
How many days until an event? Calendar days, usually excluding the end date. Best for countdowns, launches, appointments, trips, and public event pages.
How long is a project period? Weeks and remaining days. Useful for project timelines, sprint planning, staffing, and progress checks.
How old is someone or something? Calendar years, months, and days. Better for age, anniversaries, ownership length, warranties, and milestones.
How many workdays are available? Weekdays, then verify holidays separately. Helpful for business day planning, but official holiday rules may change the final number.

Date input and edge-case checklist

Date calculators are simple, but small input choices can change the answer. Check these details when the result will be used in a deadline, age calculation, contract period, or business schedule.

Use a clear date format

Confirm the start date and end date are entered in the intended order. Numeric formats like 05/06/2026 can mean May 6 or June 5 depending on location.

Check same-day ranges

The same date to the same date is 0 elapsed days, but 1 inclusive day. This matters for events, passes, rentals, and service periods.

Watch month-end dates

A range from January 31 to February 28 can look short in months but still has a precise day count. Use total days when exact duration matters.

Account for leap years

Ranges that cross February 29 may be one day longer than a similar period in a common year. This can affect anniversaries, billing, and long countdowns.

Holiday-sensitive deadline workflow

Some date intervals are informational, while others affect money, rights, services, or official filings. When the date result is important, use this verification path after calculating the basic interval.

1. Identify the rule

Find out whether the period uses calendar days, business days, court days, banking days, school days, or contract-specific days.

2. Check excluded dates

Look for weekends, public holidays, company closures, regional holidays, emergency closures, and filing cutoff times.

3. Confirm the final date

If the result controls a payment, claim, tax form, court filing, or contract notice, verify it with the official calendar or qualified adviser.

Interesting fact

Leap years add one extra day to February, which means a date range that crosses February 29 can be one day longer than the same range in a common year. The Hong Kong Observatory explains that the Gregorian calendar has 97 leap years and 303 ordinary years in every 400-year cycle. That makes the average Gregorian calendar year 365.2425 days, which is why long date intervals and anniversary countdowns can shift around leap years. Source: Hong Kong Observatory - Leap Year.

Frequently Asked Questions

How do I calculate the duration between two dates?

Enter the start date and end date in the calculator, then subtract the earlier date from the later date. For a standard elapsed-time result, do not count the end date. For an inclusive result, add one day so both dates are included in the interval.

What is the difference between calendar days, weekdays, and business days?

Calendar days include every date in the period. Weekdays remove the weekend pattern you select, usually Saturday and Sunday. A true business day count may also exclude each holiday, so legal, banking, payroll, or government deadlines may need a separate official calendar check.

Why do month and year results differ from the day result?

Months do not all have the same length, and a year can contain 365 or 366 days. A calendar breakdown such as 1 year, 2 months, and 3 days depends on the actual start date, end date, and month lengths inside the range. The total day result is the best number when you need an exact count.

Should I include the end date for a deadline, countdown, or event?

It depends on the rule you are following. If a deadline is the moment a task is due, elapsed days may be clearer. If the final date is part of an event, anniversary, age calculation, or available workday, inclusive counting may be more useful. For legal, tax, or contract deadlines, check the official rule.

Does daylight saving time affect this date calculator?

No. This calculator uses date-only input values in a standard date format, so it counts whole calendar dates instead of clock hours across a time zone. If your calculation depends on an exact timestamp, time zone, or daylight saving transition, use a date and time duration tool.

Can I use this calculator for workdays or business days?

Yes, you can estimate weekdays by choosing the weekend pattern. The result is a practical business-day estimate for a simple work interval, but it does not remove public holidays, company closures, vacation days, or region-specific nonworking days.

Date calculation disclaimer

This calculator between two dates is for general informational and planning purposes only. It is not legal advice, tax advice, accounting advice, financial advice, payroll advice, contract interpretation, medical advice, or an official deadline calculation.

Date rules can vary by country, state, court, agency, contract, employer, school, bank, carrier, or platform. Some deadlines exclude weekends or holidays, some include the final date, some roll forward, and some depend on a specific time zone or filing cutoff.

Do not rely on this calculator as your only source for legal, tax, payroll, benefits, immigration, court, medical, insurance, banking, shipping, or contract deadlines. Check the official rule, document, agency, professional adviser, or qualified authority before making decisions.

Last updated: May 16, 2026.