How to use the Days Between Dates
- Choose a start date and an end date. Use Today to fill in the current date, or a quick-range chip such as “+90 days”.
- Tick Include the end date if both the first and last day should count — for example, the length of a holiday or a hotel booking in calendar days.
- Read the total in days, then the same span as weeks + days, months + days and years, months and days.
- Check the weekdays and weekend days split. For holidays or a Friday–Saturday weekend, use the business days calculator.
- Copy the result or share the page URL — both dates are saved in the link.
How the number of days between two dates is calculated
Counting days by hand is error-prone: months have 28 to 31 days, February gains a day in leap years, and it is easy to lose track of whether the first or last day is included. This calculator turns each date into a day number — the count of days since 1 January 1970 measured in UTC — and subtracts one from the other:
Because the arithmetic happens on whole UTC days rather than on local clock times, daylight saving time can never turn a day into 23 or 25 hours and throw the count off by one. That is a common bug in quick spreadsheet or script solutions that subtract two local timestamps and divide by 86,400,000.
Worked example
From 15 January 2026 to 10 November 2026:
- Total: 299 days (300 if you include 10 November itself).
- Weeks: 299 ÷ 7 = 42 weeks and 5 days.
- Calendar months: 15 Jan → 15 Oct is 9 months, then 26 more days to 10 Nov, so 9 months 26 days.
- Weekdays: 213 Monday-to-Friday days and 86 weekend days.
Should you include the end date?
By default the result is the difference between the dates: from Monday to Tuesday is 1 day. That matches how most people think about elapsed time, how age is counted, and how spreadsheets behave (=B1-A1).
Tick Include the end date when you are counting calendar days that are all “used”, such as:
- the number of days on a trip that runs from 3 to 7 August (5 days, not 4);
- a rental, leave request or prescription that covers both the first and last day;
- contract or notice periods where the wording says “inclusive”.
When in doubt, check the wording of the document you are working with. Legal and financial deadlines often have their own counting rules, such as excluding the day of the event or rolling forward when the last day falls on a weekend.
Weeks, months and years — why they differ
Days and weeks are fixed lengths, so 299 days is always 42 weeks and 5 days. Months and years are not. This tool counts calendar months: it steps forward month by month from the start date and then counts the leftover days. When the start day does not exist in a shorter month (for example the 31st), the step lands on that month’s last day, which is the same convention used by most date libraries and by spreadsheet functions like EDATE.
| Unit | Length used | Notes |
|---|---|---|
| Week | 7 days | Exact |
| Month | 28–31 days | Counted on the calendar, not averaged |
| Average month | 30.44 days | 365.2425 ÷ 12, for rough conversions only |
| Year | 365 or 366 days | Leap years: divisible by 4, except centuries not divisible by 400 |
Leap years and the 29th of February
The Gregorian calendar adds a 29 February in every year divisible by 4, except century years that are not divisible by 400. So 2024 and 2028 are leap years, 2100 is not, and 2000 was. From 28 February 2024 to 1 March 2024 is 2 days, while the same dates in 2026 are only 1 day apart. The calculator handles this automatically for any year from 0001 to 9999.
Weekdays vs weekend days
The weekday count is the number of Mondays to Fridays in the range, using the same include-the-end rule as the main total. It is a quick estimate of working days but does not know about public holidays. For a precise working-day count with your own holiday list, or for a Friday–Saturday or Sunday-only weekend, use the business days calculator.
Common uses and tips
- Countdowns: set the start to today and the end to the event. For a live ticking clock, use the countdown timer.
- Deadlines “in N days”: to find the date that is 45 days from now, use the date calculator instead of guessing an end date.
- Age in days: enter a birth date and today, or use the age calculator for a full breakdown.
- Going backwards: if the end date is earlier than the start date, the result is shown as a negative number of days, so you can still read the gap.
Frequently asked questions
How do I calculate the number of days between two dates?
Does the day count include the start and end date?
How many days are there between today and 31 December?
Are leap years taken into account?
How are months counted when the start is on the 31st?
Can I count only working days?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.