Day Counter

DATE & TIME · CALENDAR & BUSINESS DAYS

Count days between two dates

Calculated on this device
Start date in YYYY-MM-DD format between 1800 and 2200.
End date in YYYY-MM-DD format on or after start date.
Optional US federal holiday exclusion

CALENDAR DAYS BETWEEN DATES

364 days

52 weeks, 0 days · Thursday to Thursday.

Formula Exact UTC day difference (86,400 s/day) with 5 U.S.C. § 6103 observed-holiday rules.

Business Days260Mon–Fri weekdays
Weekend Days104Saturdays & Sundays

HOW IT WORKS

Calendar days & business day counting

The Day Counter uses UTC date-only timestamps (86,400,000 ms/day) to compute exact Gregorian day spans across leap years and varying month lengths, then separates Monday–Friday weekdays from weekends and observed US federal holidays.

01

Exclusive vs. Inclusive Counting

By default, counting from Jan 1 to Jan 31 yields 30 elapsed days. Checking “Include end day” adds 1 day (31 days) for inclusive schedules and reservations.

Days = (End UTC − Start UTC) ÷ 86,400,000 + (Include End ? 1 : 0)
02

US Federal Holidays (5 U.S.C. § 6103)

Fixed-date holidays falling on Saturday are observed on Friday; those falling on Sunday are observed on Monday, matching OPM federal holiday rules.

DAY COUNTING GUIDE

Counting calendar days, business days, and federal holidays

When to include the end day

Use an exclusive count (unchecked) for hotel nights, age spans, or “days until” countdowns. Check “Include end day” for work sprints, PTO requests, or billing periods where both the first and last date are active days.

Related calendar & age tools

Want to know which weekday a specific date falls on? Try our Day of the Week Calculator. For chronological age in years, months, and days, use the Age Calculator, or calculate exact hours and seconds with the Time Duration Calculator.

Frequently asked questions

Does the Day Counter account for leap years?

Yes. Leap years (including Feb 29 in years divisible by 4, except century years not divisible by 400) are handled automatically.

How are weekend holidays handled when excluding holidays?

Following US federal (OPM) rules, fixed-date holidays on Saturday are observed on Friday and those on Sunday are observed on Monday, so they are still deducted from weekday business days.

What is the difference between Weekdays and Business Days?

Weekdays count all Monday–Friday dates in the range. Business Days subtract any selected US federal holidays that fall on weekdays.

Can I calculate days between two dates in different centuries?

Yes. Any valid Gregorian dates between 1800 and 2200 are supported.

Your dates are calculated locally in this browser and are never sent to a server.