Date Difference Calculator
Calculate the gap between any two dates
What is a date difference?
A date difference is the amount of time that separates two calendar dates. Depending on the context, this can be expressed in total days, weeks, months, or years โ each unit useful for different purposes.
Unlike simple subtraction, precise date differences must account for varying month lengths (28 to 31 days) and leap years, which add one extra day every four years (with century exceptions).
Common uses
- Project management โ how many days until a deadline, or how long a project took.
- Countdowns โ days until a wedding, holiday, exam, or event.
- Finance and loans โ interest accrual calculations based on exact days between dates.
- Legal deadlines โ court filings, contract notice periods, statute of limitations.
- HR and payroll โ notice periods, probation durations, leave calculations.
- Medical โ gestational age, medication intervals, follow-up scheduling.
Examples
| Start date | End date | Difference |
|---|---|---|
| Jan 1, 2025 | Dec 31, 2025 | 364 days (not a leap year) |
| Jan 1, 2024 | Dec 31, 2024 | 365 days (2024 is a leap year) |
| Feb 1, 2025 | Mar 1, 2025 | 28 days |
| Sep 1, 2025 | Sep 1, 2026 | 365 days (1 year) |
What are business days?
Business days (also called working days) are weekdays โ Monday through Friday โ excluding weekends and public holidays. The number of business days between two dates is commonly used in contracts, legal notices, and shipping estimates.
Our calculator estimates business days by counting weekdays between the two dates. Note that public holidays vary by country and are not automatically excluded โ subtract them manually based on your region.
Frequently asked questions
A common year has 365 days. A leap year has 366 days โ leap years occur in years divisible by 4, except century years, which must be divisible by 400 (e.g. 2000 was a leap year, but 1900 was not).
By default, the count is exclusive of the start date and inclusive of the end date (i.e. the difference between Jan 1 and Jan 2 is 1 day). This matches the most common convention in date math.
Leave the start date as today (it's pre-filled) and enter your target date in the end date field. The result will show exactly how many days from now until that date.
Yes. Set the end date before the start date, or swap the dates โ the calculator will return the absolute difference regardless of order.
How to use the Date Difference Calculator
Enter start date
Enter the first date โ a past event, the start of a project, a birthday, a contract start date, or any reference point.
Enter end date
Enter the second date. This can be today's date, a future deadline, a past event, or any target date. Future dates work just as well as past dates.
Get instant results
The exact difference appears in years, months, days, total days, total weeks, and business days โ all calculated correctly for leap years.
Practical uses for date difference calculation
Project planning and deadlines
How many working days until a project deadline? How many weeks remain in the quarter? Date difference calculators are essential project management tools. The business days count in our calculator excludes weekends automatically, giving you a realistic count of actual working days available.
Legal notice periods
Tenancy agreements, employment contracts, and commercial leases all specify notice periods โ commonly 30, 60, or 90 days. Calculating notice periods incorrectly can have legal consequences. If your lease requires 60 days' notice and you calculate from today to a date 58 calendar days away, you may breach the contract. Our calculator gives you the exact count.
Event countdowns
Weddings, examinations, holidays, and milestones โ how many days until the event matters for planning. A 90-day countdown to a wedding is very different from a 65-day countdown when it comes to booking vendors, sending invitations, and organizing travel for guests.
Tracking elapsed time
How long has it been since you started a fitness programme, a habit, a relationship, a business, or a medication? Tracking elapsed time in days and weeks โ rather than vague "months" โ is motivating and precise.
Visa day-count calculations
The Schengen Zone's 90/180-day rule requires visitors to count exactly how many days they have spent in the zone within any rolling 180-day period. An error of even one day can constitute a visa violation. Our calculator lets you check any date range precisely.
Age and eligibility
Many programmes define eligibility by number of days โ "must have 365 days of continuous employment" or "must have been resident for at least 730 days." Date difference calculation confirms whether the threshold has been met.
Calendar days vs business days โ when each matters
Calendar days count every day including weekends and public holidays. Business days count only Monday through Friday, excluding weekends.
Which to use depends on context:
- Legal contracts โ most notice periods specify "calendar days" unless explicitly stated otherwise
- Banking and financial transactions โ settlement periods (T+2, T+3) use business days
- Project timelines โ use business days for realistic scheduling
- Government deadlines โ usually calendar days; verify with the specific regulation
- Shipping and delivery estimates โ always business days (couriers don't work weekends)
Our calculator shows both simultaneously so you can use whichever applies to your situation.
Leap years and their effect on date calculations
February 29 exists only in leap years โ years divisible by 4, except century years unless also divisible by 400. This means:
- 2024 was a leap year (divisible by 4)
- 2100 will NOT be a leap year (divisible by 100, not by 400)
- 2000 was a leap year (divisible by 400)
Ranges that include February 29 of a leap year are one day longer than equivalent ranges in non-leap years. Our calculator accounts for every leap year in the date range for an exact count.