Toolstia / Days between dates calculator

Calculate the days between two dates

Counting days on a calendar by hand invites mistakes, especially across months of different lengths or a leap year. This calculator gives the exact gap between two dates as a total number of days, as weeks plus leftover days, and as years, months and days, all at once.

It has a second mode for the opposite question: start from a date and add or subtract a number of years, months and days to find a deadline, a due date, a warranty end or an anniversary. The result comes with the weekday, so you can see at once whether a deadline lands on a Saturday.

Both inputs and results use calendar dates only. There are no clock times and no time zones, which keeps the answer stable no matter where you are or when daylight saving starts.

Choose two valid dates.

How it works

  1. Choose between two dates, or add and subtract.
  2. Enter the dates.
  3. Read the result.

How the days are counted

The count is the number of midnights between the two dates, so 1 January to 2 January is 1 day. The end date is not counted as an extra day. Add one if you want both the first and last day included.

Years, months and days

The tool adds whole months to the start date and then counts the leftover days. From 31 January to 1 March it shows 1 month and 1 day, because one month after 31 January is taken as the last day of February.

Adding and subtracting

Years and months are applied first, then days. If the result falls on a day that does not exist, such as 29 February in a non-leap year, the last day of that month is used instead.

No time zones

Only calendar dates are used, so daylight saving changes never affect the answer.

Worked example: from January 15 to November 14, 2026

Enter 2026-01-15 as the start and 2026-11-14 as the end. The tool shows 303 days, which is 43 weeks and 2 days, or 0 years, 9 months and 30 days. The month count works like this: nine whole months after January 15 is October 15, and from October 15 to November 14 is 30 days.

Both representations are correct, they just measure differently. Use the plain day count for contracts that say 'within 303 days', and the years, months and days form for ages or tenure.

Adding time to a date: the 90-day deadline

Switch to add or subtract, set the date to 2026-11-14 and enter 90 days. The result is 2027-02-12, a Friday. If you subtract 6 months and 10 days instead, the result is 2026-05-04, a Monday.

Years and months are applied before days. That order is why 'one month and ten days' from a date can differ from 'forty days' from it.

Month-end and leap-day quirks

Months have different lengths, so adding one month to January 31 cannot land on February 31. The tool uses the last day of the shorter month, giving 2026-02-28. Likewise, 29 February 2024 plus one year lands on 2025-02-28.

The same rule explains why the gap from 2024-02-29 to 2025-02-28 is 365 days and also reads as exactly 1 year, 0 months and 0 days. If your contract or agency defines these cases differently, such as moving to March 1, follow its wording.

Inclusive or exclusive: counting the first day

The result counts the nights between two dates, not the number of calendar squares. January 1 to January 2 is 1 day. A hotel booking works that way, but a 'five-day course from Monday to Friday' counts both end days, so add one to the tool's result of 4.

Be explicit about this whenever a legal or HR deadline is involved. Some rules count the day of the event as day zero, others as day one.

Reversed dates and input limits

If the end date comes before the start date, the tool swaps them and shows a note, so you never get a negative number. For example, the gap between 2026-12-25 and 2026-11-14 is shown as 41 days, or 1 month and 11 days.

In add mode the year, month and day boxes accept digits only, up to five digits each. Dates must be valid, so 31 April is not accepted.

Questions

What if the end date is earlier?

The dates are swapped for you and a note says so.

Does it count weekends?

Yes. For working days only, use the working days calculator.

Does it handle leap years?

Yes.

Is anything uploaded?

No. Your dates stays in your browser and is never sent anywhere.

How many days are there between today and a future date?

The start date is filled in with today's date when the page opens. Enter the target as the end date and read the day count.

Why do years, months and days not match the total days exactly?

Months are 28 to 31 days long, so the breakdown is a calendar count and not a fixed multiple. The total day figure is exact.

Can I calculate someone's age with it?

Yes. Enter the birth date as the start and today's date as the end, and read the years, months and days.

Does it show which weekday a date falls on?

In add or subtract mode the result includes the weekday. In the two-date mode it does not.

Does the result change in a leap year?

Yes. A range that includes 29 February has one extra day, and the tool counts it.