How to use it
1. Choose datesSelect a start and end date.
2. Choose the counting ruleInclude both endpoints for event or operating days.
3. Shift a dateEnter a positive or negative number of days.
DATE DIFFERENCE AND D-DAY
Count days between two dates, include both endpoints when needed, or find a date a set number of days before or after another.
Including both dates counts the start and end date as full calendar days.
Calendar differences use UTC day units to avoid daylight-saving transitions.
1. Choose datesSelect a start and end date.
2. Choose the counting ruleInclude both endpoints for event or operating days.
3. Shift a dateEnter a positive or negative number of days.
2024-02-28 → 2024-03-01 is two elapsed days, or three when both endpoints count.
2024-02-29 + 365 days produces 2025-02-28.
2026-07-22 → 2026-07-29 is D-7; reversing the dates reports the same magnitude with a past direction.
The same two dates can produce different totals depending on whether endpoints are included.
The default difference from July 1 to July 2 is one day. It measures calendar dates, not elapsed hours.
Use it when the first and last operating days both count. The same start and end date then equals one day.
Using fixed 24-hour UTC units prevents daylight-saving days of 23 or 25 hours from changing the calendar result.
Only valid YYYY-MM-DD dates and integer offsets are supported. The calculator does not include times, time zones, business days, or public-holiday calendars.
No. It counts calendar dates only.
Inclusive mode counts both the start and end endpoint, even when they are the same date.
No. The difference uses UTC day units rather than local elapsed hours.