Date Difference Calculator
Pick a start date and an end date to see how much time separates them — in days, weeks, approximate months and years, and in working days once weekends are taken out.
Inputs
The earlier of the two dates. The count begins here.
The later of the two dates. It must fall on or after the start date.
Choose "Yes" to count the end date itself as one of the days, the way contracts and stays are usually counted.
Result
- Total days
- 364days
- Weeks
- 52.0weeks
- Months (approximate)
- 12.0months
- Years (approximate)
- 1.00years
- Workdays (Mon–Fri)
- 260days
2026-01-01 → 2026-12-31 = 364 d · 364 / 7 = 52.0 w · 364 / 30.4375 ≈ 12.0 mo · 364 / 365.25 ≈ 1.00 y · Mon–Fri: 260 d
How it works
This calculator answers a question that sounds trivial and turns out not to be: how far apart are two dates? It reports the gap in whole days, converts that figure into weeks, gives approximate months and years, and separately counts how many of those days are Monday through Friday. The two dates are entered as calendar dates, and everything is measured in whole days — there are no hours or minutes involved, so a date pair always produces the same answer no matter what time of day you run the calculation.
The first thing worth settling is what "between" actually means, because two reasonable people count differently. From 1 March to 3 March there are two days of separation, but three days if you include both the first and the last. This is the classic fence post problem: five fence posts in a straight line have only four gaps between them. Neither answer is wrong — they answer different questions. A hotel charges you for nights, which is the gap; a contract that runs "from the 1st to the 3rd inclusive" covers three days. The "Include the end date" option lets you pick which convention you want, and it changes every figure on the page, not just the day count.
The workday figure counts only Saturdays and Sundays as non-working. It deliberately does not know about public holidays, because those differ by country, by region within a country, and by year — a single calculator cannot honestly claim to cover them all. If you are counting toward a deadline that falls near Christmas, Easter, a national day, or a local bank holiday, take the number here and subtract the holidays that apply to you. The weekday of each date is determined in UTC rather than in your browser's local time zone, which is what stops the count from silently sliding by a day for visitors in the Americas or the Asia-Pacific region.
The month and year figures are approximations, and the labels say so on purpose. Months do not have a fixed length: February has 28 or 29 days, and the rest alternate between 30 and 31. This calculator divides the total day count by 30.44, the average month length across a four-year cycle, and by 365.25 for years. That gives a smooth, comparable number — useful when you want to say "about eleven months" — but it is not the same as a calendar month count.
The difference shows up in edge cases. From 31 January to 28 February is one calendar month by most people's reckoning, but only 28 days, which this calculator will report as roughly 0.9 months. Going the other way, from 1 January to 1 March is two calendar months but 59 days, or about 1.94 months here. If you need calendar months — for a rental term, a subscription period, or an age in years and months — count them on a calendar rather than dividing days. If you need a proportional figure you can compare across different periods, the division used here is the better tool.
The end date has to fall on or after the start date; entering them the other way round produces an error rather than a negative number, since a negative day count is far more often a typo than an intention. Very long ranges are handled without trouble: several centuries between the two dates will still return an answer quickly, because the workday count folds whole seven-day blocks into a single multiplication (any seven consecutive days contain exactly five weekdays) and only walks through the leftover days. One historical caveat applies at that scale — dates before the Gregorian calendar reform of 1582 are computed using today's calendar rules projected backwards, which will not match dates as they were written at the time.
Everyday uses for this are mostly practical: how many days are left before a deadline, how long a project has been running, how much notice a contract requires, how many working days remain in a quarter, how many days until a trip or an anniversary. For anything with legal or financial consequences — a statutory notice period, a filing deadline, an interest calculation — treat the figure here as a first pass and confirm it against the rules that actually govern your case, which may count weekends differently, may exclude holidays, or may define the starting day in their own way.
FormulaTotal days = end − start (+1 if the end date is included); weeks = days ÷ 7; months ≈ days ÷ 30.44; years ≈ days ÷ 365.25
Frequently asked questions
- Should I include the end date or not?
- It depends on what you are counting. Leave it off when you want the gap between two dates — nights in a hotel, days until an event, the interval between two appointments. Turn it on when both dates are part of the period itself, such as a contract that runs "from the 1st to the 30th", a leave request, or a stay counted in days rather than nights. Including the end date simply adds one to the total and shifts every other figure accordingly.
- Does the workday count exclude public holidays?
- No — it removes Saturdays and Sundays only. Public holidays vary by country, by region, and from year to year, so no single number could be correct for every visitor. Use the workday figure as your starting point and subtract whichever holidays fall inside your date range. If your workweek is not Monday to Friday, the figure will need adjusting too.
- Why is the month figure not a whole number of calendar months?
- Because it is computed by dividing the total days by 30.44, the average length of a month, rather than by stepping through the calendar. Calendar months are uneven — 28, 29, 30, or 31 days — so a period that spans exactly two calendar months can come out as 1.9 or 2.1 months here depending on which months it covers. The divided figure is more useful for comparing periods; a calendar count is more useful for contracts and ages.
- Why do I get an error when the end date is earlier than the start date?
- The calculator expects the range to run forward in time, so it reports an error instead of returning a negative day count. In practice a reversed pair is almost always a typo or two fields filled in the wrong order. Swap the two dates and you will get the answer you were looking for — the magnitude of the difference is the same either way.
- Will the answer change depending on my time zone?
- No. Both dates are handled as plain calendar dates in UTC, with no clock time attached, so the same pair of dates always produces the same result whether you are in Los Angeles, Berlin, or Seoul. This matters most for the weekday count: reading the day of the week in local time can shift a date onto the previous day for users west of UTC and turn a Saturday into a Friday, which would quietly inflate the workday total.
- Can I use it for very old or far-future dates?
- Yes, and ranges of centuries are calculated just as quickly as short ones. Be aware, though, that dates before the Gregorian reform of 1582 are treated with modern calendar rules applied retroactively, so they will not line up with dates as they were recorded historically. For anything before that period, a historian's conversion table is the safer reference.
Related calculators
Share
Embed this calculator
Paste this code into your site to embed a live, working version of this calculator.
Last updated: 2026-08-11