Skip to main content
CalcVerdict
Date Calculator illustration

Date Calculator

Count the days between two dates, with business days, weeks, and a years-months-days breakdown that lands exactly on your end date. Leap years handled.

Date & TimeWorks without JavaScriptReviewed 2026-08-13

Inputs

Your numbers

No gives days elapsed. Yes counts both dates, the way a jury summons or a hotel stay does.

Try an example

Result

Enter your values and press Calculate to see the result here.

Formula verified against Calendars — the Gregorian calendar and its leap-year rule from U.S. Naval Observatory, Astronomical Applications Department. Last checked 2026-08-13.

Built and maintained by Eddy Bo, founder of CalcVerdict.

How does this calculator work?

Give this page two dates and it reports the span between them as a total number of days, as whole weeks plus leftover days, as years, months and days, and as a count of weekdays against weekend days. It also names the day of the week each endpoint falls on. The method is the day-number technique the U.S. Naval Observatory describes for Julian dates: convert each calendar date into a running count of days from a fixed origin, then subtract one count from the other. That single subtraction is immune to unequal month lengths and to leap years, because both are already baked into the count before you subtract. The leap rule itself is the Gregorian one the Naval Observatory states - divisible by four, except centuries, unless divisible by four hundred - so 2000 was a leap year and 1900 was not. The question the tool insists you answer is whether the end date is included. This is not a formatting toggle; it changes the answer by one and it has real consequences. Ask how many days from Monday to Tuesday and there are two defensible answers. One, if you mean elapsed time - that is what subtraction gives, and it is how a hotel bills nights or a bank counts interest days. Two, if you mean how many days you are counting, which is how a jury summons, a project schedule or a "your report is due within 10 days" clause is usually read. The default here is elapsed, and switching the include-end option to yes adds the end date to the count. Legal and contract deadlines are especially prone to this: an off-by-one born of the wrong convention is the most common date error there is, and no amount of careful arithmetic protects you if the convention is wrong. The weekday count follows the same convention. Business days are Monday through Friday, matching the basic federal workweek defined in 5 CFR 610.111. When you include the end date, the start date is included too, so the weekday figure is anchored one day earlier rather than patched with a correction term that would need to know whether the start happened to be a Saturday. What the business-day count deliberately does not do is exclude public holidays, and that omission is a choice rather than an oversight. No single holiday calendar is right for everyone: federal holidays differ from state ones, observed dates shift when a holiday lands on a weekend, and none of it transfers outside the United States. Counting weekdays and saying so plainly is more honest than quietly applying one country's table and being wrong everywhere else. Subtract your own holidays from the weekday figure. Dates entered in the wrong order are reordered rather than rejected, with the reversal flagged, because a negative number or a validation error helps nobody. Inputs are accepted between 1600-01-01 and 2400-12-31. The lower bound exists because the Gregorian calendar is proleptic before the 1582 reform - projecting it backwards is arithmetically exact but historically misleading, since those dates were actually recorded in the Julian calendar. A well-formed string is also checked against the real calendar, so 2023-02-30 is refused rather than silently accepted. Both endpoints are explicit inputs and no system clock is consulted anywhere, which is why a result link means the same thing next year as it does today. If what you want is somebody's age rather than a raw span, the age calculator applies the calendar-month rules that make birthdays work properly, and the percentage calculator is handy for turning elapsed days into a share of a project timeline.

What questions do people ask about this calculator?

Should I count the end date or not?

It depends what you are counting. "How many days from Monday to Tuesday" is one day if you mean time elapsed, and two if you mean how many days are involved. A hotel charges for nights, so it bills the elapsed count; a deadline stated as "within 30 days" and a jury summons usually count both endpoints. This calculator defaults to elapsed days, because that is what subtracting one date from another gives, and offers the inclusive count as an explicit option rather than guessing.

How is a leap year decided?

A year is a leap year if it divides by 4, except that years divisible by 100 are not, unless they also divide by 400. So 1996 and 2024 are leap years, 1900 and 2100 are not, and 2000 and 2400 are. The century exception is the part that gets dropped, and dropping it produces an answer that is right about 96% of the time — wrong in precisely the cases someone reaches for a calculator to check. The U.S. Naval Observatory states the rule.

What counts as a business day here?

Monday through Friday, which is the basic federal workweek under 5 CFR § 610.111. Holidays are NOT excluded, and that is deliberate rather than an omission: there is no single holiday calendar that would be correct for everyone. Federal holidays differ from state ones, observed dates shift when a holiday falls at a weekend, and none of it applies outside the United States. Subtract your own holidays from the weekday count.

Why do the years-and-months figures not just divide the total days?

Because months are not a fixed length. The breakdown counts whole calendar months first and then measures the leftover in real days, so it lands exactly on your end date. Dividing 29 days by an "average month" of 30.44 gives 0.95 months, which is not a thing anyone means. From 31 January to 1 March 2023 the honest answer is one month and one day: one month after 31 January is 28 February, because the day clamps to the end of a shorter month, and one further day is 1 March.

Does the time of day or my timezone matter?

No. Everything here is whole calendar dates, with no time of day and no timezone. That is what stops a date shifting by one depending on where you are — the classic bug that moves a birthday across midnight. Leap seconds do not affect the answer either: a leap second adjusts a clock, not a calendar, and never adds a day.

Can I use dates before 1582?

Not here, and the reason is honesty rather than arithmetic. The Gregorian calendar was introduced in 1582, so applying it to earlier dates — a "proleptic" calendar — produces an exact number that does not match what was actually written down at the time, since those dates were recorded in the Julian calendar. The floor is set at 1600, safely after the reform, rather than offering a figure that looks authoritative and is historically misleading.

Sources