Date difference calculator
Find how many days there are between two dates, or which date falls a number of days, weeks or months before or after another.
Runs in your browser
Choose Japan or Taiwan to also see the dates in the Japanese era or as ROC years. Without a choice, everything is still calculated in the Gregorian calendar.
Once you choose, it’s saved on this device and used by other tools too.
Result
Days
30
From Thursday, December 3, 2026 to Saturday, January 2, 2027
The start date is not counted; the end date is.
- In weeks
- 4 weeks, 2 days
- In years, months and days
- 30 days
- Weekdays (Mon–Fri)
- 21
- Weekend days
- 9
The result changes only when you press Calculate. Your dates never leave your browser.
Next step
Category: Dates & time 8
- Date Difference CalculatorThis page
- Time Card Calculator
- Working Days Calculator
- US Federal Holidays
- Age Chart by Birth Year
- Week Number
- Military Time Converter
- Time Zone Converter
How the days are counted
The calculator works with calendar dates only — no times, no time zones — so the answer is the same wherever you are. It counts the days from the start date to the end date: the start date is not counted and the end date is, just as Monday to Tuesday is one day.
Tick “Count both the start and end dates” when the first day counts too, for example for a festival that runs from the 1st to the 3rd. That adds one day.
- The formula
- Days = end date − start date (+ 1 if both dates are counted)
- Weeks
- 30 days = 4 weeks and 2 days
- Month ends
- January 31 + 1 month = February 28 (29 in a leap year). When a month is too short, its last day is used.
- Leap years
- Years divisible by 4 are leap years, except century years not divisible by 400: 2000 was one, 2100 will not be.
Examples
| Situation | Result |
|---|---|
| From Sunday, October 18, 2026 to Christmas Day, Friday, December 25, 2026 | 68 days |
| All of 2027, January 1 to December 31, both dates counted | 365 days |
| 90 days after Sunday, October 18, 2026 | Saturday, January 16, 2027 |
| 1 month after Sunday, January 31, 2027 | Sunday, February 28, 2027 |
| February 28 to March 1, 2024, a leap year | 2 days |
Common questions
Are the start date and the end date counted?
By default the start date is not counted and the end date is, so October 18 to October 19 is 1 day. That is what most people mean by “days between” or “days until”. If both days should count — a three-day festival from Friday to Sunday, for example — tick “Count both the start and end dates” and one day is added.
How are leap years handled?
Every date follows the Gregorian calendar, so February 29 only exists in leap years: years divisible by 4, except century years that are not divisible by 400. 2024 and 2028 are leap years; 1900 and 2100 are not.
How are months counted when they have different lengths?
Months follow the calendar: one month after March 15 is April 15, however many days that is. When the target month is shorter, its last day is used, so one month after January 31 is February 28 (or 29). The “In years, months and days” line uses the same rule.
How do I count my age or an anniversary in days?
Put the birthday or anniversary as the start date and today as the end date. With the default counting you get the number of days that have passed, and “In years, months and days” shows the same period as an age.
Why only dates from 1900 to 2100?
That range covers nearly every everyday question. Every date in it is counted on the Gregorian calendar, even though a few countries still used the older Julian calendar in the early 1900s.
Which time zone is “today” in?
The default dates start from today’s date on your device, so they follow your own time zone. The calculation itself has no time of day, so daylight saving changes never add or remove a day.
Can it leave out weekends and holidays?
The result counts every calendar day and also shows how many of them are weekdays (Monday to Friday). To leave out public holidays as well, use the working days calculator.
Sources
The leap-year rule is the Gregorian one described by the U.S. Naval Observatory. Result dates are also shown in the ISO 8601 format (YYYY-MM-DD).
Related tools
From other categories, often used alongside this one.
