Date Difference Calculator

Calculate exact days, weeks, months, and years between two dates.
Find time until an event, time elapsed since a date, or days between any two calendar dates.

Time Between Dates

Calculating the number of days between two dates seems simple but involves accounting for varying month lengths, leap years, and calendar rules. Understanding the underlying math helps verify results and handle edge cases correctly.

The core concept: Convert both dates to a day count from a fixed reference point (e.g., January 1, year 1), then subtract: Days Between = Day Number of End Date − Day Number of Start Date

Leap year rule (Gregorian calendar): A year is a leap year (366 days) if:

  • Divisible by 4, AND
  • Not divisible by 100, OR
  • Divisible by 400

So: 2000 = leap year ✓, 1900 = NOT a leap year ✓, 2024 = leap year ✓

Manual calculation, rough method: Days = (Years × 365) + Leap Days + Month Days + Day Offset

Worked example: From March 15, 2023 to November 8, 2024:

  • March 15, 2023 to March 15, 2024: 366 days, because 29 February 2024 sits inside that span
  • March 15 to November 8, 2024:
    • March 16–31: 16 days
    • April 30 + May 31 + June 30 + July 31 + Aug 31 + Sep 30 + Oct 31 = 214 days
    • Nov 1–8: 8 days
    • Total = 16 + 214 + 8 = 238 days
  • Grand total: 366 + 238 = 604 days

Check it against the day-of-year shortcut if you like: 15 March 2023 is day 74 of a 365-day year, leaving 291 days in 2023, and 8 November 2024 is day 313 of a leap year. 291 + 313 = 604.

Common uses:

  • Project deadlines and countdowns
  • Age calculation in days
  • Lease terms (30-day vs calendar month)
  • Loan interest calculations (interest accrues daily on many loans)
  • “Days since” tracking (exercise streaks, sobriety, events)

Business days: Strip out the weekends and you keep 5 of every 7 days, or about 71% of the calendar. Public holidays come off after that. The US has 11 federal holidays, so a full year lands nearer 250 working days out of 365, which is 68%. The business-day figure in the result below counts weekdays only and leaves holidays to you, since they differ by country and often by state.


How we build and check this calculator

This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.

SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.


Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.