DATE DIFFERENCE AND D-DAY

Calculate date differences
and calendar offsets.

Count days between two dates, include both endpoints when needed, or find a date a set number of days before or after another.

D-Day notation
Direction

Including both dates counts the start and end date as full calendar days.

Use a negative number to calculate an earlier date.

Calendar differences use UTC day units to avoid daylight-saving transitions.

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.

Worked calendar checks

Leap-year range

2024-02-28 → 2024-03-01 is two elapsed days, or three when both endpoints count.

Add from leap day

2024-02-29 + 365 days produces 2025-02-28.

D-Day direction

2026-07-22 → 2026-07-29 is D-7; reversing the dates reports the same magnitude with a past direction.

Date-counting rules

The same two dates can produce different totals depending on whether endpoints are included.

Difference means elapsed days

The default difference from July 1 to July 2 is one day. It measures calendar dates, not elapsed hours.

Inclusive counting adds one

Use it when the first and last operating days both count. The same start and end date then equals one day.

UTC day units avoid clock shifts

Using fixed 24-hour UTC units prevents daylight-saving days of 23 or 25 hours from changing the calendar result.

Scope and limitations

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.

Date calculator FAQ

Does it count business days?

No. It counts calendar dates only.

Why is the same date one inclusive day?

Inclusive mode counts both the start and end endpoint, even when they are the same date.

Can daylight-saving time change the result?

No. The difference uses UTC day units rather than local elapsed hours.