logic.codes

Days Between Dates Calculator

How many days, weeks and business days are there between two dates?

Single calculationv1.0.0Verified 2026-11-01Runs in your browser

Spec sheet

date_diff · v1.0.0
Method

Gregorian calendar day count (UTC)

  1. 01days = end − start (+1 if the end date is included)
  2. 02business days = days that are Monday–Friday
Limits — read before relying on it
  • Public holidays are not excluded from weekdays.
  • Dates are calendar dates without time zones.
Sources
  • ISO 8601 calendar datesstandard

Worked example

computed by the same formula

2026-01-01 to 2026-12-31

Inputs
Start date
2026-01-01
End date
2026-12-31
Count the end date
No
Result
Days
364
Weeks
52
Weekdays (Mon–Fri)
260
Whole months
11

Questions

How is the days between dates calculated?

›

Gregorian calendar day count (UTC). days = end − start (+1 if the end date is included) · business days = days that are Monday–Friday

Example: 2026-01-01 to 2026-12-31?

›

Days: 364; weeks: 52.

What does this calculator not cover?

›

Public holidays are not excluded from weekdays. Dates are calendar dates without time zones.

Where do the numbers come from?

›

Sources: ISO 8601 calendar dates. The formula is versioned (date_diff v1.0.0) and covered by automated tests.

Is my data stored?

›

No. The calculation runs in your browser and nothing is sent unless you choose to save a shareable link.

Also searched asdays between dates · how many days until · date difference calculator · count days · business days between dates · how many weeks between

Related

More personal & life calculators