Skip to content
Spellkit

Date Difference Calculator

Days, weeks, and the exact years/months/days between any two dates.

What is Date Difference Calculator?

Date Difference Calculator counts the days between two dates, along with weeks and an exact years/months/days breakdown that accounts for leap years and varying month lengths. Swap the dates freely — it always returns the absolute difference. Use this free date calculator for deadlines, anniversaries, and D-day countdowns, right in your browser.

Key features

  • Total days between any two dates
  • Weeks plus a years/months/days breakdown
  • Order-independent: swapping dates gives the same answer
  • Leap years and month lengths handled correctly
  • UTC-based counting, unaffected by time zones or DST

Date Difference Calculator — days between two dates

Pick a start and an end date and this tool tells you the gap between them three ways: a total day count, that count in whole weeks, and a calendar breakdown in years, months, and days. Both fields default to today, so you can set just one and immediately read a countdown or a "time since" figure.

Days counted as a gap, not an inclusive range

This is the detail that trips people up. The total is the difference between the two dates — the number of nights, not the number of days you'd land on if you counted both endpoints. Check into a hotel on the 10th and out on the 13th and the tool reports 3, which is the nights you pay for. Book leave from a Monday to the Friday of the same week and you get 4, even though that's 5 working days off. If you want an inclusive count — "how many days does my event run, counting both the first and last day" — add one to the result. Being clear about which you need avoids the classic off-by-one on deadlines and leave requests.

The years / months / days breakdown

For long spans, raw days aren't intuitive, so the tool also expresses the same distance in calendar terms. It does this by borrowing from the previous month when the day-of-month subtraction goes negative, using that month's real length — so "1 year, 2 months, 5 days" respects that February is short and that some months have 31 days. The weeks figure is simply the total days divided by seven, rounded down.

Order doesn't matter

The result is always the absolute difference, so it makes no difference which date you put first. Swap start and end and you get the same numbers — handy when you're not sure which of two dates is earlier.

Common uses

  • A D-day countdown to a deadline, launch, exam, or trip.
  • Time elapsed since an anniversary, a hire date, or a product launch.
  • Project duration, notice periods, billing cycles, and warranty windows.

Not the same as an age calculation

The years/months/days breakdown here measures the span between two arbitrary dates. If what you actually want is someone's age — with a next-birthday countdown and lifetime totals in weeks and days — the Age Calculator is built around a birth date and adds those extras. This tool is the more general "distance between two dates" version.

Things worth knowing

  • Counting uses UTC calendar dates, so the answer is never shifted by a time zone or a daylight-saving jump — the same two calendar dates always give the same number of days.
  • The tool measures whole calendar days only; it doesn't factor in times of day, so a difference is the same whether an event is at 9am or 9pm.
  • It runs entirely in your browser, works offline once loaded, and never uploads either date.

Frequently asked questions

Does the total include both dates, or just the gap between them?
It counts the gap, the number of nights between the two dates, not an inclusive day count. Check in on the 10th and out on the 13th and you get 3; if you need an inclusive total that counts both endpoints, add 1 to the result.
Does it matter which date I enter first?
No. The result is always the absolute difference, so swapping start and end gives identical numbers. That's handy when you're not sure which of two dates is earlier.
How is the years/months/days breakdown worked out for long spans?
When the day subtraction goes negative it borrows from the previous calendar month using that month's real length, so "1 year, 2 months, 5 days" respects short Februaries and 31-day months. The weeks figure is simply the total days divided by 7, rounded down.
Will time zones or daylight saving shift the answer?
No. Counting uses UTC calendar dates, so the same two dates always produce the same day count no matter where you are or whether a DST change falls between them. It measures whole calendar days and ignores times of day.
Can I use it as a D-day countdown?
Yes. Leave the start on today (the default) and set the end to your deadline to read the days remaining, or reverse them for "days since." Both fields default to today until you change them.

Privacy

The difference between the two dates is computed locally; neither date you enter is transmitted anywhere.