Calculatorism

Day Counter

Enter a start and end date to get the number of days and weeks between them, optionally including the end day.

Input Data

The starting date (YYYY-MM-DD).
The ending date.

Results

0
0

At a glance:The day counter subtracts the start date from the end date to get the day difference; with 'Include End Day' the total adds 1. Weeks = total days ÷ 7.

Formula

days = floor((endDate - startDate) / 86,400,000 ms).

If includeEndDay: days = days + 1.

weeks = days / 7.

How to Use

  1. Enter the start and end dates.
  2. Optionally check 'Include End Day' to count both ends.
  3. Get days and weeks instantly.

FAQ

What does 'Include End Day' mean?

When checked, the end day itself is counted (total +1), used for rentals, treatments and other inclusive periods.

Can the day count be negative?

If the end date is earlier than the start date, the result is negative, meaning a countdown to a past date.

Related Tools

References

Content reviewed by the Calculatorism editorial team. Results are for reference only; please refer to the relevant authorities for the official figures.

Found a problem with the results?

If this calculator's result is wrong, or you have any question about the calculation logic, please let us know. You are viewing:Day Counter/everyday-life/day-counter)。