TheFileTools

How to count the days between two dates

Find the number of days, weeks and working days from one date to another, and how the end day is counted.

How many days until a deadline, how long a notice period runs, how many working days a project has. Counting on a calendar goes wrong at month ends and in leap years.

Steps

  1. Open Days between dates.
  2. Set From and To. Both start on today's date.
  3. Read the result lines.

If From is later than To, the two are swapped, so the result is always a positive length of time.

A worked example

From 30 November 2026, a Monday, to 25 December 2026, the tool shows:

  • Years, months, days: 0 y, 0 m, 25 d
  • Days: 25
  • Weeks: 3 weeks, 4 days
  • Working days (Monday to Friday): 19
  • Hours: 600

Is the last day included?

No. The result is the number of nights between the two dates, the same as subtracting one from the other. Monday to Friday of the same week is 4 days. If both the first and the last day count, as with a hotel stay counted in days or a leave request, add 1.

Working days follow the same rule: the start date is counted if it is a weekday, the end date is not. Monday to Friday of one week gives 4 working days, and Monday to the next Monday gives 5.

What the tool does not know

  • Public holidays. Working days are plain Mondays to Fridays. Subtract the holidays that fall in your period yourself.
  • Times of day. Only whole dates are compared, and Hours is the number of days times 24.
  • Months of different length. In the years, months and days line, whole months are counted first and the remaining days after. From 31 January to 1 March 2026 is 1 month and 1 day, because one month after 31 January is taken as 28 February.

The same calculation gives an age when From is a date of birth, see Age calculator. To time something happening now, use Stopwatch or Countdown timer.