How to Count the Days Between Two Dates

Count the days between two dates correctly, including whether to count the end day, and how to convert the total into weeks, months or business days.

Updated 5 min read By CodingEagles
Free tool Date Difference Calculator Years, months, days and total days between two dates. Open tool

To count the days between two dates, count forward from the earlier date to the later one. For elapsed days, do not count the starting day, so 1 June to 4 June is three days. The date difference calculator does this exactly and also shows the gap in weeks, in years and months, and in business days.

The maths is simple. The thing that causes wrong answers is deciding whether the last day counts, so that is worth getting straight.

Elapsed days versus counted days

There are two reasonable ways to count a span, and they differ by one.

  • Elapsed days measure how much time has passed. Consecutive days are one day apart, so 1 June to 2 June is one day. This is what you want for things like how many days old something is.
  • Counted days treat both ends as part of the span. A festival that runs from Friday to Sunday lasts three days, because Friday, Saturday and Sunday all count.

Neither is more correct in general; they answer different questions. The date difference calculator has an include-end-day toggle so you pick the one you need.

Why you should count against the real calendar

It is tempting to estimate by assuming 30-day months, but that drifts whenever a span crosses February or a 31-day month. The reliable way is to count the actual calendar days, which handles leap years and the different month lengths automatically.

For example, 28 February to 1 March is one day in a common year but two days in a leap year, because of 29 February. A calculator that walks the real calendar gets this right; a 30-day estimate does not.

Turning days into weeks, months or business days

Once you have the total days, you can express it other ways:

  • Weeks: divide the day count by seven; the remainder is the leftover days.
  • Years and months: count whole years and months first, then leftover days, the same method used for age.
  • Business days: count only Monday to Friday, leaving out weekends.

The date difference calculator shows all of these at once, so you do not have to convert by hand.

Where this comes up

Counting days between dates turns up constantly:

  • Bookings and stays, where the number of nights depends on whether the checkout day counts.
  • Projects and deadlines, where you want the elapsed time between two milestones.
  • Claims and records, where a precise span has to match the calendar.

To count only working days, see how to count business days. To measure an age from today instead of a fixed gap, see how to calculate your exact age, or open the date difference calculator now.

Frequently asked questions

How do I count the number of days between two dates?
Count forward from the earlier date to the later one. For elapsed days, do not count the start day, so 1 June to 4 June is three days. The date difference calculator does this against the real calendar, so leap years and month lengths are handled, and it also gives the total in weeks and business days.
Should I include both the start and end day?
It depends on what you are counting. For elapsed time, count only one end, so the gap between consecutive days is one. For a span where both ends are used up, such as a booking or an event running across dates, include the end day. The calculator has a toggle for this so you can switch.
Why do two date calculators give me different answers?
Almost always because one counts the end day and the other does not, a difference of one. Check whether each tool counts elapsed days or includes both ends. Using a single calculator with a clear include-end-day toggle removes the guesswork.

Ready to try it?

Years, months, days and total days between two dates. Free, in-browser, and 100% private. Your data never leaves your device.

Open the Date Difference Calculator