Enter your dates
Choose a start date and an end date. You can optionally include the end date to count both start and end as full days. Great for event planning, travel, school terms, or counting down to a goal.
Pick two dates and instantly get the exact date difference in days, plus an easy breakdown in weeks, months, and years. Perfect for deadlines, birthdays, project planning, and “how long ago was that?” moments.
Choose a start date and an end date. You can optionally include the end date to count both start and end as full days. Great for event planning, travel, school terms, or counting down to a goal.
“Date difference” sounds simple—until you remember that calendars are full of tricky details: leap years, months with different lengths, daylight saving time changes, and the question everyone asks: Do you count the end date or not?
This calculator produces a clean, practical answer by computing the difference in several ways (all based on the same two dates): total days, weeks + days, and a calendar-aware years + months + days breakdown. That way you can choose the format that matches what you’re trying to explain.
The most reliable way to count days is to treat each date as a midnight-to-midnight calendar day. If you subtract two “local time” timestamps, daylight saving time can introduce surprising results (like 23 or 25-hour days). To avoid that, this calculator converts each date to a UTC-only day number:
86,400,000 (milliseconds per day).
Mathematically:
days = (UTC(end) − UTC(start)) ÷ 86,400,000
If you choose Include end date, the calculator simply adds 1 day to the final count. That’s because an inclusive range counts both endpoints (for example: Jan 1 to Jan 1 is 1 day, not 0).
Many real-life situations are expressed in weeks: pregnancies, workout programs, project sprints, school schedules, and “how long until” countdowns. Once we have the total day count, we can split it into weeks and leftover days:
weeks = floor(days ÷ 7)
remainingDays = days mod 7
Here’s the key idea: a “month” is not a fixed number of days. February can be 28 or 29 days. Some months have 30 days, others 31. So if someone asks, “How long between these dates in months?”, the most honest answer is a calendar-aware breakdown like “2 years, 3 months, 5 days.”
To compute that breakdown, the calculator follows a simple, human-like method:
This produces a breakdown that matches how people naturally talk about time: you’re counting full “calendar steps” first (years, then months), and only then counting leftover days.
Business days are commonly used for shipping estimates, payroll timelines, and professional deadlines. When enabled, the calculator counts how many weekdays (Monday–Friday) are inside the date range. This is a simple weekday-only count and does not automatically subtract public holidays (since those vary by country and company).
Here are a few “classic” date-difference scenarios. Try them in the calculator and you’ll see the same patterns. (Your exact output can vary depending on whether you include the end date.)
If you’re using this calculator to say “how long since X happened”, you typically set: Start = the past date and End = today. That gives you a “time since” number you can share in posts, journals, or progress updates.
Tip: Use the quick preset buttons to set “Start → Today” or “Today → End” instantly.
Most confusion about date difference comes from mixing two different questions:
Here’s a simple decision rule:
This calculator shows multiple formats at once so you can pick the cleanest one for your situation without doing mental math.
Yes. Leap years are naturally handled because the calculator uses real calendar dates. If the range includes February 29 (in a leap year), the total day count and breakdown will reflect it.
Months aren’t a fixed length—February can be 28 or 29 days, and other months are 30 or 31. That’s why this calculator provides a calendar-aware breakdown (years + months + days), which is usually what people mean in real life.
It means the range is counted inclusively. For example, Jan 1 → Jan 1 becomes 1 day (because that day is included). In “exclude end date” mode, that same range is 0 days (nothing elapsed between identical endpoints).
The calculator counts Monday–Friday as business days. It does not automatically subtract holidays because those vary by country and workplace. If your use case requires holidays, treat this as a baseline estimate.
Not in this calculator. We compute the day difference using UTC midnight to prevent DST shifts from producing “off by one” results in day counting.
Yes. Set the start date to today and the end date to your future event. The result is your countdown in days (and also in weeks and calendar breakdown).
Yes. Set the start date to the past date and the end date to today. Many people use this for habits, streaks, and progress updates. Use the “Start → Today” preset to fill it instantly.
MaximCalculator provides simple, user-friendly tools. Always treat results as informational and double-check any important schedules elsewhere.