Understanding Your Result
You get the exact day count, a breakdown into weeks plus remaining days, and approximate month and year equivalents. Toggling 'Include end date' adds 1 day, which is useful when both the start and end dates are inclusive (such as hotel stays or leave requests).
Day Difference Formula
- Exclusive Days = |End Date (UTC) − Start Date (UTC)| / 86,400,000
- Inclusive Days = Exclusive Days + 1
- Weeks & Remainder = floor(Total Days / 7) weeks and (Total Days mod 7) days
Step-by-Step Calculation Method
- Convert both calendar dates to midnight UTC timestamps so daylight-saving transitions never add or drop an hour.
- Take the absolute difference in milliseconds and divide by 86,400,000.
- Add 1 day if the end date itself should be counted as part of the period.
How to Use This Calculator
- Select the Start Date and End Date.
- Check or uncheck 'Include end date (+1 day)' based on whether the closing day counts.
- Read the total days, weeks, and approximate calendar equivalents.
Worked Example: Counting Inclusive Leave Days
An employee takes leave from Monday, March 2, 2026 through Friday, March 6, 2026 (inclusive).
- Standard difference between March 2 and March 6 is 4 days.
- Enabling 'Include end date' adds 1 to count March 2, 3, 4, 5, and 6.
Result: Total inclusive duration is 5 days (0 weeks and 5 days).
Assumptions and Limitations
- Counts all calendar days including weekends and public holidays; it does not exclude regional bank holidays.
- If the end date precedes the start date, the calculator measures the absolute span and notes the reversed order.
Frequently Asked Questions
When should I check 'Include end date'?
Check it for inclusive ranges such as event durations, paid leave days, or project sprints where work happens on both the first and last date. Leave it unchecked for night stays or elapsed age.
Does daylight saving time affect the day count?
No. Calculations normalize dates to UTC midnight so 23-hour or 25-hour DST days never skew the day count.
References & Methodology Sources
- ISO 8601 Calendar Date Representation — International Organization for Standardization
Reviewed under the DailyCalcWell Editorial Policy. Calculations execute locally in your browser.