Date calculator

Count the days from one date to another, or move a date by a number of days. A date is a civil day, written YYYY-MM-DD.

Days between

Example: 2026-01-01 to 2026-01-03 is 2 calendar days.

Add or subtract days

Use a negative whole number to move backward. Example: 2026-01-02 plus 1 weekday is 2026-01-05.

How the count works

The count is the number of dates you cross to go from the first date to the second. From 2026-01-01 to 2026-01-03 is 2. The same date twice is 0. If the second date is earlier, the result is negative.

Weekdays means Monday through Friday. The weekday count is the number of those days after the start date, up to and including the end date. From Friday 2026-01-02 to Monday 2026-01-05 the calendar count is 3 and the weekday count is 1 (Monday only). The start Friday is not included. Public holidays are not excluded. A holiday on a Wednesday still counts as a weekday.

Adding 0 stays on the same date. A negative number moves backward. From Friday 2026-01-02, one weekday later is Monday 2026-01-05, because Saturday and Sunday are skipped. One calendar day later is Saturday 2026-01-03.

Calendar rules

A year divisible by 4 is a leap year, except a year divisible by 100 is not, unless it is also divisible by 400. 2024-02-28 to 2024-03-01 is 2 calendar days because 29 February is crossed. 2023-02-28 to 2023-03-01 is 1. 2026-02-30 and 2026-13-01 are rejected.

Daylight-saving time is about clocks, not dates. In places that start daylight-saving time on 8 March 2026, the local clock jumps, and 2026-03-07 to 2026-03-09 is still 2 calendar days. The same is true where clocks fall back on 1 November 2026: 2026-11-01 to 2026-11-02 is 1 day. The date you type is the date that is used, in every time zone.

Limits

Years run from 0001 through 9999. Weekday walks are limited to 150000 steps, and weekday counts to dates within 400 years, so a mistyped number cannot stall the page. This is not a business-day calendar for a country, a court, or a bank. It does not know local holidays, partial days, or times of day.

The YYYY-MM-DD writing is the full-date form in RFC 3339, which profiles ISO 8601. The leap-year rule above is the proleptic Gregorian rule this page applies. No timezone database is consulted.