Date Calculator
Days between two dates, or a date shifted by any interval. The date calculator answers in years, months and days as well as a plain day count.
Notice: For general informational purposes only; not legal advice. A deadline set by a court, statute, regulation or contract is computed under the rules that govern it. Confirm any such deadline with the court, the agency or an attorney.
Days between
- Counting both dates The start date counted as day 1 as well as the end date, for how many days a trip, a course or a streak lasts.
- 280
- In years, months and days Counted by whole calendar months first, then the leftover days. That is why this cannot be derived from the day count alone. Months are not all the same length.
- 0 years, 9 months, 6 days
- Weeks
- 39.86 weeks (39 weeks and 6 days)
- Months (average) Using the Gregorian average month. The calendar figure above is the exact answer; this one is for comparison.
- 9.17
- Business days Excluding 80 weekend days, and counting both the start and end dates. Public holidays are not deducted, because they differ by country, state and employer.
- 200
- Hours, minutes and seconds
- 6,696 hours, 401,760 minutes, 24,105,600 seconds
- Start date Day 1 of 2026, ISO week 1.
- Thursday, January 1, 2026
- End date Day 280 of 2026, ISO week 41.
- Wednesday, October 7, 2026
- Leap days in between Each one adds a day the plain year arithmetic would miss.
- 0
- Every date is handled in UTC, so the answer does not depend on where the server or the reader is. A local-time implementation gives a different result either side of midnight.
- The day count is exclusive of the start date and inclusive of the end: from the 1st to the 2nd is one day. The business-day count includes both ends, which is the convention for 'how many working days is this project'.
How the Date Calculator works
Date arithmetic looks trivial and contains three traps. All three come from the calendar being irregular rather than from the arithmetic being hard.
The first is that months have different lengths, so "one month later" is not a fixed interval. What should one month after January 31 be? The convention every date library and every bank follows is to clamp: the answer is February 28, or 29 in a leap year. Adding 31 days instead gives March 3, and a naive implementation that sets the month field and leaves the day alone also gives March 3, because the underlying date object rolls the overflow forward. Clamping is what matches how leases, billing cycles and loan payments behave.
The second is that month arithmetic does not commute with day arithmetic. From January 31, adding a month and then subtracting a day gives February 27; subtracting a day and then adding a month gives January 30. Neither is wrong; they are different operations. The convention is to apply the coarse units first, years then months then days, which is what this calculator does.
The third is that a difference between two dates has two correct answers that cannot be derived from one another. From January 1 to October 7, 2026 is 279 days. It is also 9 months and 6 days. You cannot get the second from the first without knowing the actual calendar, because the months in between were 28, 31, 30, 31, 30, 31, 31, 30 and 30 days long. The calendar difference is computed by counting whole months forward from the start date and then measuring the leftover days. That is also the only way to guarantee the day component never comes out negative.
Business days add their own convention. Counting weekdays between two dates is straightforward: full weeks contribute five each, and the remainder is walked day by day. Holidays are not. They differ by country, by state or province, by industry and by employer, and a calculator that silently assumed US federal holidays would be wrong for most of the world. This calculator counts weekdays and says so, leaving holidays to be deducted manually. Note also the convention difference: a plain day count is exclusive of the start date, while a business-day count for project planning normally includes both ends.
Two implementation details worth knowing because they are where date bugs live.
Everything here is computed in UTC. A date calculator using local time gives different answers depending on where it runs, and the difference shows up as an off-by-one day for anybody in a different time zone from the server. Since these pages are rendered once and read everywhere, local time would be wrong for most readers.
And invalid dates are rejected rather than coerced. Asked for 2026-02-30, the standard JavaScript date constructor silently returns March 2. This calculator returns an error, because a date calculator that accepts a date that does not exist will give a confident wrong answer rather than no answer.
A last piece of calendar trivia that is occasionally load-bearing: leap years are every year divisible by 4, except centuries, except centuries divisible by 400. So 2000 was a leap year and 1900 was not, which is a distinction a surprising amount of software got wrong in the late 1990s.
Date Calculator FAQ
How many days are between two dates?
Subtract one from the other in whole days. From January 1 to October 7, 2026 is 279 days. That count excludes the start date and includes the end, so January 1 to January 2 is one day. The same gap is also 9 months and 6 days, which is a different and equally correct answer.
What is one month after January 31?
February 28, or February 29 in a leap year. The convention is to clamp to the last day of the target month rather than rolling into the next one, which is how banks, leases and billing cycles behave. Adding 31 days instead would give March 3.
How do I count business days?
Full weeks contribute five business days each, and the remaining days are checked individually for weekends. Holidays are a separate matter. They differ by country, state and employer, so this calculator counts weekdays and leaves holidays for you to deduct.
Why do date calculators disagree with each other?
Usually one of three conventions: whether the start date is counted, whether a month step clamps or rolls over, and whether local time or UTC is used. All three produce off-by-one differences. This calculator excludes the start date, clamps month steps, and works entirely in UTC.