How to count days between dates
- Enter the two dates you want to compare.
- Leave Count both dates off for elapsed time, or turn it on to count the entire range.
- Read Calendar days, or use Full weeks and Days beyond full weeks for a weekly breakdown.
- Open How it’s calculated to check the date order and the last complete month.
Date difference formula
is the earlier date and is the later one. The ordinal assigns a consecutive number to every calendar date. is one for inclusive counting and zero for elapsed time. is the day total, is the number of complete weeks, and is the remainder in days. For months, advance the start by the largest whole number of calendar months that fits before or at the counting boundary. Then count the days left over.
Worked example
Count nights between check-in and checkout
The booking starts on July 2 and ends on July 7. Leave both endpoints unchecked because checkout is the day the stay ends.
Start date: Jul 2, 2026 · End date: Jul 7, 2026 · Count both dates: false
- Calendar days
- 5
- Full weeks
- 0
- Days beyond full weeks
- 5
- Full calendar months
- 0
- Days beyond full months
- 5
Measure a period that starts on the last day of a month
Compare January 31 with March 5 to see how the month count uses February’s last day when the original day is unavailable.
Start date: Jan 31, 2026 · End date: Mar 5, 2026 · Count both dates: false
- Calendar days
- 33
- Full weeks
- 4
- Days beyond full weeks
- 5
- Full calendar months
- 1
- Days beyond full months
- 5
Calendar intervals from the same January date
The start is January 31 in a leap year. The rows show how elapsed days and full months advance as you move the end date.
| End date | Elapsed days | Full months | Remaining days |
|---|---|---|---|
| Feb 29, 2024 | 29 | 1 | 0 |
| Mar 1, 2024 | 30 | 1 | 1 |
| Mar 31, 2024 | 60 | 2 | 0 |
| Apr 8, 2024 | 68 | 2 | 8 |
Use the rule that matches your schedule
Subtract dates for a stay, a wait, or a gap between milestones. Count both dates for a roster that includes each day printed on it. For example, a venue can list opening and closing dates as two included entries even though only one day elapsed between them. Confirm which convention your team uses before comparing two schedules.
To report progress as a share of a schedule, count the elapsed and planned days using the same setting and then express the elapsed share as a percentage. If the comparison starts on a birthday, the age calculator gives full years and the date of the next birthday. For borrowing costs, use the term and repayment schedule in the loan payment calculator.
Frequently asked questions
Should I include the last day when counting dates?
Include both dates when the range lists every date covered, such as all dates an event is open. Leave the option off for elapsed time or a hotel checkout date. Read the wording on the booking or schedule before deciding which total to use.
How do I calculate weeks between two dates?
Divide the total day count by seven. The whole part is the number of complete weeks, and any remaining days are displayed separately. Choose your endpoint setting first because it can move the result from a partial week to a full week.
Why do two calendar months have different day totals?
Calendar months have different lengths. A full month is counted by advancing the earlier date by one month on the calendar. If the corresponding day is missing, use the last day of the destination month. The day count still reflects each actual calendar date.
Does the result include weekends and holidays?
Yes. Saturday, Sunday, and public holidays count the same as any other date. To measure business days, use the applicable work schedule or holiday calendar. Check whether the organization treats an observed holiday or a day off in lieu as working time.
What if I enter the dates in reverse?
You get the same nonnegative interval. The calculator uses the earlier date as the point of reference for the calendar months. If you need to record whether something happened before or after a target, keep the direction separately from the size of the gap.
Method and sources
The tool uses the proleptic Gregorian calendar and UTC date arithmetic. The elapsed count is independent of clock changes. Month offsets are anchored to the earlier day of the month and constrained to the destination month. In inclusive mode the counting boundary advances by one day.
Sources
Updated