Skip to content
FestivKit

Days Between Dates

Find the difference in days, weeks, and calendar months, and choose whether the end date is included.

Your data stays in your browser. This tool processes your input locally and does not upload it to a server.

Days
30
Weeks
4
Remaining days
2
Months
0
Years
0
Leftover days
30

How do you calculate the number of days between two dates?

Subtract the earlier date from the later one, counting whole calendar days. This calculator does that for any two dates, optionally includes the end date in the count, and also shows the result as weeks and days, and as calendar months, years and leftover days.

How this calculator counts

Pick a start date and an end date. By default the result is the end date minus the start date, so 1 January to 31 January is 30 days. Tick "Include the end date" to count both ends, which adds one day (31 in that case) and is how many contracts, leave requests and bookings count.

Each date is treated as a calendar day, converted to a UTC day number before subtracting. This makes the count independent of daylight saving changes and time zones. If the end date is before the start date, the result is negative.

Days, weeks, months and years

Besides total days, the tool shows whole weeks with the remaining days, and a calendar breakdown: months, years and leftover days. These use the real lengths of each month, so a span of one month can be 28, 29, 30 or 31 days.

All calculations happen in your browser, and the dates you enter are not uploaded.

Examples

Exclusive count

Input

Start 2026-01-01, End 2026-01-31, include end date off

Output

Days 30, Weeks 4, Remaining days 2, Months 0, Years 0, Leftover days 30

Inclusive count

Input

Start 2026-01-01, End 2026-01-31, include end date on

Output

Days 31, Weeks 4, Remaining days 3, Months 0, Years 0, Leftover days 30

Weeks and remaining days follow the inclusive day count; the calendar breakdown does not change.

Leap year versus normal year

Input

Start 2024-02-28, End 2024-03-01 (then 2025-02-28 to 2025-03-01)

Output

2024: Days 2
2025: Days 1

Common mistakes and edge cases

  • Inclusive versus exclusive: the same two dates differ by one day depending on whether the end date counts. Check which rule your contract, visa or booking uses.
  • Leap years: 29 February adds a day to spans that cross it, as in the example above.
  • Reversed dates: if the end date is earlier, results are negative, which usually means start and end were swapped.
  • Months are not fixed length: the Months and Leftover days outputs are calendar-based, so do not multiply months by 30 to recover days.
  • Business days are not counted: weekends and public holidays are included in the total.
  • Dates only: the tool ignores times and time zones, so use the Unix timestamp converter if you need hours or minutes.

How to use this tool

  1. Pick a start date and an end date.
  2. Choose whether to include the end date.
  3. Read the day, week, and calendar breakdown.

Frequently asked questions

How many days are there between two dates?

Enter the start and end dates and read the Days value. The tool subtracts calendar days, so 2026-01-01 to 2026-01-31 gives 30. If you need the end date counted as well, tick Include the end date and the result becomes 31. The count correctly handles different month lengths and leap years.

Should I include the end date when counting days?

It depends on the rule you are following. Exclusive counting measures the elapsed time between the dates and is the usual choice for age, durations and deadlines expressed as "within N days". Inclusive counting treats both the first and last day as full days, which fits hotel nights versus event days, leave requests and some contracts. When in doubt, check the wording of the document.

Does daylight saving time affect the result?

No. Both dates are converted to calendar day numbers in UTC before subtraction, so a 23-hour or 25-hour day around a clock change does not change the count. The tool works with dates only, not clock times.

How are weeks and months worked out?

Weeks equals the day count divided by 7, rounded toward zero, with the remainder shown as Remaining days. Months and years come from calendar arithmetic between the two dates, and Leftover days are the days beyond the last whole month. For example, 2026-01-01 to 2026-03-15 is 2 months and 14 days.

Can I calculate working days or exclude weekends?

No. This tool counts every calendar day, including weekends and holidays. For working days you would need to subtract those days yourself, since holiday calendars differ by country and employer.

References

Last reviewed

Related tools

Browse all tools