Date Difference Calculator

—Days
—Weeks
—Months

How to Calculate Days Between Two Dates

Whether you’re planning a trip, tracking a deadline, or calculating how long something lasted, knowing the number of days between two dates can be useful.

The simplest method is to count the calendar days that have passed from the start date to the end date. For longer periods, a date calculator can handle different month lengths and leap years automatically.

How to Count Days Manually

Follow these steps:

  1. Write down your starting date and ending date.
  2. Count the days remaining in the starting month.
  3. Add the days in any complete months between the dates.
  4. Add the days elapsed in the ending month.
  5. Decide whether you need elapsed days or inclusive counting.

For a faster calculation, use the Date Difference Calculator above.

Examples of Calculating Days Between Dates

Example 1: Counting Days Within the Same Month

How many days are between January 1 and January 7?

Subtract the starting day from the ending day:

7 − 1 = 6 days

Six calendar days have elapsed. If you include both January 1 and January 7, the inclusive total is 7 days.

Example 2: Counting Across Two Months

How many days are between January 25 and February 10 in a non-leap year?

January has 31 days.

Days remaining after January 25: 31 − 25 = 6 days

Days elapsed in February through February 10: 10 days

Total: 6 + 10 = 16 days

The elapsed difference is 16 days. If both endpoints are included, the total is 17 calendar dates.

Example 3: How Leap Years Affect the Result

How many days are between February 28 and March 1?

In 2024, a leap year:

February 28 to February 29 = 1 day

February 29 to March 1 = 1 day

Total = 2 elapsed days

In 2025, a non-leap year, the same date range is only 1 elapsed day.

A leap year normally occurs every four years, except century years that are not divisible by 400. For example, 2000 was a leap year, but 1900 was not.

Elapsed Days vs. Inclusive Days

Elapsed days measure the time that has passed between two dates. Inclusive counting includes both the starting date and the ending date.

For example, consider Monday through Friday:

Elapsed days: 4 days
Inclusive days: 5 calendar dates

For a date range where the end date is on or after the start date:

Inclusive days = Elapsed days + 1

Which method should you use?

Hotel stays: Usually count nights between check-in and check-out. Monday check-in and Friday check-out generally mean four nights.

Event schedules: An event running Monday through Friday generally spans five calendar dates.

Deadlines: Confirm whether the starting day counts and whether the rules use calendar days or business days.

Billing periods: Follow the provider’s specific start-date and end-date rules.

The Date Difference Calculator above can help you determine elapsed time between dates. If you need inclusive counting, add one day to the elapsed-day total for an ordered date range.

How to Convert Days Into Weeks

To convert days into weeks, divide the total number of days by seven.

For example, 246 days contains:

35 complete weeks (245 days)
1 remaining day

The result is 35 weeks and 1 day, or approximately 35.14 weeks.

Why Calculating Calendar Months Is Different

Unlike weeks, calendar months have different lengths: 28, 29, 30, or 31 days.

For example, January 15 to February 15 is one calendar month and 31 elapsed days.

However, February 15 to March 15 is also one calendar month, but it spans 28 days in a non-leap year or 29 days in a leap year.

Dividing a day count by 30 can provide a rough estimate, but it does not reliably calculate complete calendar months.

For precise month-based calculations, the rules must specify how to handle dates near the end of a month.

Common Date Calculation Mistakes to Avoid

Forgetting leap years: February has 29 days in a leap year instead of 28, which can change the result when your date range crosses February 29.

Mixing inclusive and elapsed counting: These methods produce different totals. Elapsed days measure the gap between dates, while inclusive counting includes both dates.

Ignoring date order: If the ending date comes before the starting date, determine whether you need a negative difference or the absolute number of days between the dates.

Confusing calendar days with business days: Calendar-day calculations include weekends. Business-day calculations may exclude weekends and specified holidays.

Ignoring daylight saving time: Some local calendar days contain 23 or 25 hours because clocks change. When calculating calendar-date differences in software, use calendar-aware date calculations rather than assuming every local day contains exactly 86,400,000 milliseconds.

Frequently Asked Questions

          Count the remaining days in the first year, add any complete intervening years, and then add the days elapsed in the final year. Remember to account for leap years.

          1. Does the starting date count?

            Not in a standard elapsed-day calculation. The starting date does count when using inclusive counting.

            2. What if both dates are the same?

            The elapsed difference is zero days. Inclusive counting treats that single date as one calendar day.

            3. Does a date difference include weekends?

            A standard calendar-day difference includes weekends. Business-day calculations follow separate rules and may exclude weekends and holidays.

            4. How do I calculate days between dates in different years?

            Count the remaining days in the first year, add any complete intervening years, and then add the days elapsed in the final year. Remember to account for leap years.

            5. Can I calculate days between dates without counting manually?

            Yes. The Date Difference Calculator above can handle different month lengths and leap years automatically. Check whether the result represents elapsed days or inclusive days.

            These calculations are intended for general informational purposes. For legal deadlines, billing disputes, or other situations where counting rules matter, verify the applicable requirements.