Date Difference Calculator

The exact number of days between two dates — with a years, months and days breakdown that always adds back up, plus weeks, working days and public holidays.

Entered the dates latest-first? We swap them for you — and always tell you when we do.

Date difference

—

⚠ The end date was earlier than the start date, so the two dates were swapped — the difference below runs from the earlier date to the later one.

What this date difference calculator does

This date difference calculator answers one question exactly: how many days are between two dates? Enter a start date and an end date and it gives you the total days between dates instantly — and then keeps going, expressing the same span as years, months and days, as weeks and days, and as total hours, minutes and seconds. There is no calculate button and nothing to submit: the answer updates as you type.

People work out how many days between dates for project deadlines, notice periods, contracts, travel and visa windows, leave planning, and counting down — or up — to an event. What they usually discover is that the total is the easy part. The hard part is the breakdown, because months have different lengths and leap years exist. On this page the years/months/days breakdown follows one strict rule — a whole month only counts when the same day-of-month exists in the later month — so the breakdown always adds back up to the exact total, even across February and month ends, where many calculators quietly disagree with themselves.

Under the result you will also find a business-days panel. It splits the very same span into working days, weekend days and US federal public holidays, lists every holiday it finds by name and date, and shows the arithmetic, so the figures reconcile: total = working + weekend + weekday holidays. Everything runs in your browser; your dates are never uploaded anywhere.

One pattern comes up again and again: a date difference calculated from today. A notice period that runs “from today”, a probation review, a subscription renewal, a countdown to a flight — in each case the start date is simply today's date, which is why both fields have a Today button. Set the start to today, pick the target date, and the headline is the number of days you have left, with the working-days figure underneath it for anything measured in office time. The same works in reverse for “how long ago was it?” questions — enter the older date as the start, today as the end, and the total is the exact number of days since, broken down into years, months and days if the span is long.

Also a date duration calculator — and a date to date calculator

People arrive at this page under several different names, and every one of them describes the same measurement. Call it a date duration calculator and you are asking how long a span lasts, from its start date to its end date. Call it a date to date calculator and you are comparing one date directly against another. This page answers both ways of asking: pick any two dates and it measures the full duration between them — in total days first, then in years, months and days, in weeks, and in hours, minutes and seconds. Whatever name you searched for, the calculation underneath is identical, and so is the strict breakdown rule explained further down: the parts always add back up to the whole.

How to use it

  1. Enter the start date — type it, paste it, or pick it from the calendar.
  2. Enter the end date the same way. If you entered them latest-first, the tool swaps them and shows a warning — or use the ⇄ Swap dates button yourself.
  3. Read the result instantly: total days, the years/months/days breakdown, weeks, the time totals and both dates' weekdays.
  4. Turn on “Include the end date” if both the first and the last day should count — every total grows by exactly one day.
  5. Check the business-days panel for working days and public holidays, then copy the answer or the link to share it.

Days between dates calculator: how the number of days between two dates is counted

The headline figure on this page is the number of days between two dates, and it is counted the way calendars are normally read: the start date is day zero, and each day after it adds one, so the end date is reached exactly when the count is complete. That is the count you want when you count days between dates for a contract deadline, a notice period, a visa window or a project plan — the number of midnights you cross travelling from the first date to the second. If your situation counts both endpoints instead — a hotel stay, a rental, a ticket valid “from Monday to Friday” — turn on “Include the end date” and every total grows by exactly one day, with the result saying so openly.

How to calculate the difference between two dates by hand

Calculating a date difference by hand — working out the difference between two dates with nothing but a calendar — comes down to counting the total in days, in three pieces: the days remaining in the start month after the start date, then every full month in between at its real length, then the day-of-month of the end date. Take 15 January 2026 to 15 March 2026. January has 31 days, so 31 − 15 = 16 days remain after the 15th. February 2026 adds 28, bringing the count to 44. Adding the 15 days of March up to the 15th gives 59 days. The only trap is February: it has 29 days in a leap year — a year divisible by 4, such as 2024 or 2028 (century years must divide by 400) — and 28 days otherwise.

For a years/months/days answer by hand, match the day-of-month first: from 15 January to 15 March the day-of-month lines up exactly, so the span is a clean 2 months with 0 days left over. When the day-of-month does not line up — because the later month is shorter — the month-end rule below decides what counts as a whole month.

A longer example shows both steps together. From 20 August 2025 to 5 May 2026: matching the day-of-month, whole months run from 20 August to 20 April — that is 8 complete months. The leftover piece, 20 April to 5 May, is 15 days. So the breakdown is 0 years, 8 months, 15 days. Check it against the total: 11 days remain in August after the 20th, then September 30, October 31, November 30, December 31, January 31, February 28, March 31 and April 30 make 242, and adding the 5 days of May gives 258 days in total — and 8 months plus 15 days added back onto 20 August 2025 lands exactly on 5 May 2026. That add-it-back check is the test any breakdown, from any calculator, should pass.

The time between dates, in every unit

Days are not always the most useful way to picture a span, so the result card also expresses the time between dates as weeks and days, and as total hours, minutes and seconds. A 59-day gap is also 1,416 hours; a full year of 365 days is 8,760 hours. Because the result gives the span as a length of time as well as a count of days, this page also serves as a time duration calculator for anything measured from one date to another — a probation period, a countdown to a deadline, the time since an event — with the years, months and days breakdown sitting alongside for the calendar view of the same span.

How whole months are counted when a month is shorter

Here is the puzzle that catches almost every calculator out. From 29 February 2024 to 28 February 2025 is exactly 365 days. Is that one year? There is no 29 February 2025, so “add one year” cannot land on the same day-of-month. This calculator uses the month-end rule: adding months to a month-end date lands on the last day of the shorter month. So 29 February 2024 + 12 months = 28 February 2025, and the span is 1 year, 0 months, 0 days — the same answer our Age Difference Calculator gives for a leap-day baby turning one on 28 February.

The same rule settles the month-end case: 31 January 2026 to 28 February 2026 is 1 month (28 days), because 31 January + 1 month lands on 28 February, the last day of February. It is the rule our Date Calculator uses when it adds months, so all three date tools on this site agree with each other. Whatever is left over after whole months is counted in days, and adding the breakdown back onto the start date always lands exactly on the end date. Whichever tool you use, a breakdown that does not add back up to its own total is the sign of a tool that has not decided on a rule.

Worked examples

15 January 2026 → 15 March 2026

59 days — 0 years, 2 months, 0 days; 8 weeks and 3 days; 1,416 hours. The business panel splits the same 59 days into 40 working days + 17 weekend days + 2 public holidays on weekdays: Martin Luther King Jr. Day (Monday, 19 January 2026) and Presidents' Day (Monday, 16 February 2026). 40 + 17 + 2 = 59 — the figures reconcile.

29 February 2024 → 28 February 2025

365 days — 1 year, 0 months, 0 days under the month-end rule explained above (29 February + 12 months lands on 28 February, the last day of the shorter month). In weeks: 52 weeks and 1 day.

31 January 2026 → 28 February 2026

28 days — 0 years, 1 month, 0 days: exactly 4 weeks, and exactly 1 month under the month-end rule, because 31 January + 1 month lands on 28 February, the last day of February 2026.

1 January 2026 → 1 January 2027

365 days — 1 year, 0 months, 0 days; 52 weeks and 1 day; 8,760 hours; and 251 working days once weekends and weekday public holidays are split out in the business panel.

Date difference or date calculator — which one do you need?

This tool measures the gap between two dates you already have: how many days, weeks, months and years sit between them. If instead you have one date and want to move forwards or backwards from it — "what date is 90 days after 15 March?" — that is the job of the calculator that adds and subtracts time from a single date. Both tools count whole months with the same month-end rule (31 January plus 1 month is 28 February), so a breakdown from this page always adds back onto the start date exactly.

Frequently asked questions

How are years, months and days worked out when a month is shorter?

Whole months are added with the month-end rule: adding a month to a month-end date lands on the last day of the shorter month. So 31 January + 1 month = 28 February, and 29 February 2024 + 12 months = 28 February 2025 — which is why 29 February 2024 to 28 February 2025 is exactly 1 year (365 days), and 31 January to 28 February is exactly 1 month. It is the same rule our Date Calculator and Age Difference Calculator use, so all three tools agree. Any days left over after whole months are counted in days, and the breakdown always adds back onto the start date to land exactly on the end date.

Does the end date count in the difference?

Not by default. The start date is day zero, and each following day adds one, so you reach the end date exactly when the count equals the difference — the end date itself is the finish line, not an extra day. If you need both the first and the last day included, for example when counting a rental period or a stay inclusively, turn on 'Include the end date' above: every total then grows by exactly one day, and the result says so.

How many business days are there between two dates?

Look at the business-days panel under the result. It splits the same total into working days (Monday to Friday), weekend days, and US federal public holidays that fall on weekdays, and the three figures always add back up to the total number of days. Every holiday found is listed by name and date, so you can check the count yourself. A holiday that falls on a Saturday or Sunday is listed too, but it is counted as a weekend day — it is never deducted twice.

What happens if the end date is earlier than the start date?

The two dates are swapped so the earlier one comes first, and a warning appears under the result telling you that this has happened — nothing is ever changed silently. The difference itself is then the ordinary positive count between the two dates. If you prefer, use the swap button to put the dates in order yourself before reading the result.

How can I work out the days between dates by hand?

Count the days left in the start month, add the full months in between, then add the day-of-month of the end date. For 15 January 2026 to 15 March 2026: January has 31 days, so 31 − 15 = 16 days remain after the 15th; February 2026 adds 28, giving 44; then add 15 for the days of March up to the 15th — 59 days in total. The only trap is February: it has 29 days in a leap year (a year divisible by 4, such as 2024 or 2028) and 28 days otherwise.

Related tools