Days Between Dates

Calculate the exact number of days between two dates. Useful for tracking project durations, rental periods, age calculations, and any date difference needs.

Include End Date
Calculation Method

How to Use

  1. Select the start date

    Choose the beginning date of the period you want to measure.

  2. Select the end date

    Choose the ending date of the period.

  3. View the result

    Click Calculate to see the number of days between the two dates in multiple units.

What is a date interval?

A date interval is the length of time between two dates, expressed in days. Because the calendar mixes 30- and 31-day months and February has 29 days in a leap year, doing the math in your head is error-prone. This calculator counts the difference between two dates exactly, based on the real Gregorian calendar.

Typical uses include:

  • Countdowns (D-day): see at a glance how many days remain until an exam, a wedding, a due date, or an anniversary.
  • Contract and employment periods: lease terms, length of service, probation periods, the end of an interest-free installment plan, and other legal or administrative durations.
  • Business days: count only weekdays, excluding weekends, when setting project schedules or delivery deadlines.

By default the calculator includes the start date and excludes the end date. If you want to count both endpoints, turn on the 'Include End Date' option.

Formula

The total number of days between two dates is found from the difference in their midnight timestamps.

Total days = (end date − start date) ÷ 86,400,000 ms

For example, from 2024-01-01 to 2024-03-01 there are 31 days in January + 29 days in February (a leap year) = 60 days. Turning on 'Include End Date' adds 1, giving 61 days.

Business days are counted by stepping forward one day at a time from the start date, skipping Saturdays and Sundays.

Weekdays = total days − weekend days

Conversions to weeks, months, and years use averages: weeks = ⌊days ÷ 7⌋, months ≈ days ÷ 30.44, years ≈ days ÷ 365.25 (with leap-year correction).

Frequently Asked Questions

How do I calculate the number of days between two dates?
Subtract the start date from the end date to get the number of days between them. Enter the start and end dates in this calculator and it automatically computes the total days, weekdays, weekend days, and conversions to weeks, months, and years.
Does it include the start date, the end date, or both?
By default the start date is included and the end date is excluded. For example, from the 1st to the 5th counts as 4 days. To include both endpoints, turn on the 'Include End Date' option or add 1 to the result.
Are leap years taken into account?
Yes. Because the calculator works from the real calendar, leap years (February 29) are handled automatically. For instance, from February 28, 2024 to March 1, 2024 counts as 2 days, since 2024 is a leap year.
Can I count business days (weekdays) only?
Yes. Under 'Calculation Method', choose 'Weekdays only (exclude weekends)' to highlight only the weekday count (Mon–Fri), excluding Saturdays and Sundays. This is handy for project durations and working-day estimates.
What is the weekday count used for?
It is mainly used for working-day calculations, project scheduling, delivery dates, and construction timelines. Note that public holidays are not excluded automatically, so subtract any statutory holidays separately when needed.
Can the difference be converted into months or years?
Yes. Based on the total days, the calculator automatically shows an approximate number of months (÷30.44) and years (÷365.25). Keep in mind these are average-based approximations rather than exact calendar month and year differences.
What happens if the start date is later than the end date?
Even if the two dates are in reverse order, they are sorted automatically so the result is always a positive number of days. You can use it the same way to count down to a future date, like a D-day.
2026 calendar data

Related Calculators