Day Counter — Count Days Between Two Dates
Enter a start and end date to count total days, weekdays (Mon–Fri), weekend days (Sat–Sun), and full weeks in the range — including individual day-of-week counts.
Calendar days from start (inclusive) to end (exclusive)
How does this calculator work?
Total days = end − start date (inclusive start, exclusive end). Full weeks = floor(days ÷ 7) giving 5 weekdays and 2 weekend days each; remainder days from the start's weekday fill in the last partial week. Per-day counts (Mondays, Tuesdays, etc.) use the same week-plus-remainder arithmetic — no day-by-day loop needed.
Formula
How this is calculated
The calculator converts both dates to Unix timestamps and subtracts them to get the total day count. This is the number of days starting from (and including) the start date up to (but not including) the end date — the standard convention used by employment law, payroll, and date libraries worldwide.
Weekdays (Monday through Friday) and weekend days (Saturday and Sunday) are tallied using a mathematical formula: the range contains floor(totalDays ÷ 7) complete weeks, each containing exactly 5 weekdays and 2 weekend days. The remainder days (0–6) start from the weekday of the start date and are counted individually. This formula is exact for any date range without looping through every single day.
Individual day-of-week counts use the same approach: floor(total ÷ 7) full occurrences plus 0 or 1 from the remainder days, depending on whether that particular weekday falls within the partial week at the start of the range. This is useful for billing or project planning where specific weekdays (e.g. Mondays for weekly meetings) need to be counted precisely.
Frequently asked questions
Yes — the calculator uses the standard "inclusive start, exclusive end" convention. For example, Jan 1 to Jan 8 gives 7 days (Jan 1, 2, 3, 4, 5, 6, 7 are counted; Jan 8 is not). This matches how most programming languages and spreadsheets count date differences.
The "Weekdays (Mon–Fri)" figure is the count of business days (assuming a standard Mon–Fri work week with no public holidays). For holiday-adjusted business-day counts, you would need to subtract the number of public holidays that fall on weekdays in your date range.
They are the most commonly needed individual-day counts — Mondays for weekly meetings and recurring deadlines, Fridays for payroll processing and end-of-week reporting. All seven day-of-week counts are computed; only two are shown in the summary for brevity.
Also known as
TG we-Calculate Editorial Team. (2026). Day Counter — Count Days Between Two Dates [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/day-counter
TG we-Calculate Editorial Team. "Day Counter — Count Days Between Two Dates." TG we-Calculate. 2026. https://we-calculate.com/calculator/day-counter.
TG we-Calculate Editorial Team, "Day Counter — Count Days Between Two Dates," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/day-counter
@misc{wecalculate_day_counter, title = {Day Counter — Count Days Between Two Dates}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/day-counter}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
