0
Years
Find the exact time between any two dates — years, months, weeks, days, hours and minutes. Includes business days, custom weekend settings, and end-date inclusion.
0
Years
0
Months
0
Days
Exact duration
—
0
Total years
0
Total months
0
Total weeks
0
Total days
0
Total hours
0
Total minutes
Days in span
—
Weekdays
—
Weekend days
—
Business days
—
Starting day
—
Ending day
—
This date difference calculator finds how much time separates any two dates — in years, months, days, weeks, hours and minutes all at once. It handles leap years, months with different lengths, business days, custom weekend days, and even time-of-day precision. Everything runs in your browser, so nothing is uploaded and no account is needed.
It's used by project managers tracking deadlines, legal teams counting notice periods, HR departments calculating notice or leave, accountants reconciling interest periods, event planners counting weeks until a wedding, and anyone who has ever needed to know "how many days until X?" The calculator answers that question for every unit at once, so you don't need to pick.
By default, the difference is exclusive of the end date. That is, the difference from 1 January to 31 January is 30 days. This is how most duration calculations work — the same convention Excel uses with simple subtraction.
Turn on Include end date and the calculator adds 1 day to the count. 1 January to 31 January becomes 31 days. This is how day-count conventions work in some contracts, hotel bookings, and business-day calculations where both endpoints count as service days.
Rule of thumb: if you're computing "how long until X", exclude the end date. If you're computing "how many service days are there", include it. If unsure, run both and check which matches the convention used by the party that needs the number.
Turn on Calculate business days only to exclude weekend days from the count. The default weekend is Saturday and Sunday, which matches most Western countries.
But weekends vary:
The calculator lets you toggle any of the seven days as weekend days, so the business-day count matches your actual working week. It does not include public holidays — you'd need to subtract those manually.
This calculator counts calendar months, not fixed 30-day blocks. From 15 January to 15 February is exactly one month, whether February has 28 or 29 days that year. From 31 January to 28 February is also one month, because the end date is the last day of the following month.
This matches how age is counted on official documents. An infant born on 1 January is "one month old" on 1 February, "two months old" on 1 March, and "one year old" on 1 January of the next year — regardless of the number of days in between.
The calculator also gives you the total month count as a single number. From 1 January 2020 to 1 July 2021 is 18 months total. That can be more useful than "1 year 6 months" when computing interest or seniority.
The calculator uses the proleptic Gregorian calendar, which extends the modern Gregorian calendar backwards to year 1. This is the standard for historical date arithmetic in computing.
A year is a leap year when it is divisible by 4, except that century years are leap years only if divisible by 400. So 2000 was a leap year (divisible by 400), but 1900 was not (divisible by 100 but not 400). The calculator handles all of this automatically.
Any date from year 1 to 9999 is supported, so you can calculate the difference between a historical event and today, or between two historical dates.
| From | To | Days (excl.) | Days (incl.) | Notes |
|---|---|---|---|---|
| 1 Jan 2024 | 1 Jan 2025 | 366 | 367 | 2024 is a leap year |
| 1 Jan 2023 | 1 Jan 2024 | 365 | 366 | Standard year |
| 15 Jan | 15 Feb | 31 | 32 | One calendar month |
| 15 Jan | 15 Mar | 59 or 60 | 60 or 61 | Depends on leap year |
| 1 Apr 2024 | 30 Apr 2024 | 29 | 30 | Tax-month convention |
| Mon | Fri (same week) | 4 | 5 | Includes both endpoints |
These are the exact counts the calculator produces. If your contract, tax authority or accounting system uses a different convention, adjust the Include end date toggle accordingly.
Every calculation runs in your browser. No date is sent to any server. Your inputs are stored only in your browser's local storage on your own device so they persist between visits — they never leave your computer or phone.
The only network requests the page makes are for Google Fonts and the AdSense script. After the page loads, the calculator works entirely offline.
Being honest about limits is more useful than pretending they don't exist. This calculator does not:
The difference is counted in calendar terms: full years first, then full months, then remaining days. This matches how age and duration are counted on official documents.
You choose. Excluding the end date is standard for duration (1 Jan to 31 Jan = 30 days). Including the end date counts both endpoints (1 Jan to 31 Jan = 31 days).
Yes. Turn on "Calculate business days only" and choose your weekend days. Default is Saturday and Sunday.
Enter both dates and the calculator shows the total number of days. By default the end date is excluded, so 1 January to 31 January is 30 days. Enable Include end date for 31 days.
Yes. The calculator uses the proleptic Gregorian calendar, so 29 February is counted when the year is a leap year (divisible by 4, except centuries not divisible by 400).
Yes. Set the From date to your birth date and the To date to today. The Years, Months, Days result is your exact age. For age-specific formatting, use the dedicated Age Calculator.
The calculator still works. It shows the absolute difference and labels the result with the direction you entered. Use the Swap preset to reverse it if you want the calculation to run the other way.
Yes. Enable Include time of day and enter hours and minutes for both dates. Total hours and total minutes are then computed with that precision.
Yes. Any date from year 1 to 9999 works. The calculation uses the proleptic Gregorian calendar, which is the standard for historical date arithmetic.
Calendar months are counted, not 30-day blocks. From 15 January to 15 February is exactly one month, whether or not February has 28 or 29 days.
Total months is the span expressed entirely in months — 18 months, for example. Years, months, days breaks that same span into its calendar components: 1 year 6 months 0 days.
Your inputs are stored only in your browser's local storage on your own device. Nothing is sent to any server.
Yes. After the page has loaded once, the calculator works without an internet connection.
Yes. It is completely free, runs entirely in your browser, and requires no signup.
This calculator handles date arithmetic. For age-specific output, financial calculations or everyday math, these tools do the same job — free, in your browser, no signup.