hesaplayıcı
Menu

How to Count the Days Between Two Dates

Hesaplayıcı3 min read

Short answer

To count the days between two dates, subtract the start date from the end date: the start day counts and the end day does not. To count the end day too, add 1. For example, 1 January to 31 December 2026 is 364 days; with the end day it is 365 days, of which 261 are Monday–Friday business days.

Open the calculator →

Formula

days = end − start (+ 1 when the end day counts)

full weeks = ⌊days / 7⌋

remaining days = days − 7 × full weeks

business days = days − Saturdays and Sundays

  • start and end: the two dates you enter. Each date is a calendar day; the time of day is not used.
  • ⌊ ⌋: rounding down
  • Saturdays and Sundays: the weekend days among the days counted. Public holidays are not removed.

For years, months and days, full months come off first, then the remaining days are counted. A month is complete when its day is at least the start day.

Step-by-step example

From 14 September 2026 to 14 October 2026:

  1. Days: 2026-10-14 − 2026-09-14 = 30 days.
  2. Full weeks: ⌊30 / 7⌋ = 4 weeks.
  3. Remaining days: 30 − 7 × 4 = 2 days.
  4. Business days: the range holds 8 Saturdays and Sundays, so 30 − 8 = 22 business days.
  5. Years, months and days: 1 month and 0 days.

If you count the end day too, the result is 31 days, 23 business days and 1 month and 1 day.

Should the end day count?

For a range such as nights at a hotel, the end day does not count. For a period that includes its first and last day, such as how many days an event lasts, it does. The two results for the same year:

2026-01-01 to 2026-12-31 Days Full weeks and remaining days Business days
End day not counted 364 52 weeks, 0 days 260
End day counted 365 52 weeks, 1 day 261

A contract or a law can count a period by its own rule; for a deadline, follow the rule of that text.

Months and leap years

Months have different lengths, so the number of days and the number of months do not always match. From 31 January to 1 March:

Range Days Years, months and days
2023-01-31 to 2023-03-01 29 1 month, 1 day
2024-01-31 to 2024-03-01 30 1 month, 1 day

2024 is a leap year and February has 29 days, so the count is one day higher. Years divisible by 4 are leap years; century years not divisible by 400, such as 1900, are not.

Counting business days

Business days here are Monday to Friday. The public holidays of Law No. 2429, religious holidays and half-day holiday eves are not removed; take the holidays in your range off the result yourself. Where Saturday is a working day, the number of working days is different.

Worked example: 1 January to 31 December 2026, end day included

Days

365 days

Full weeks
52 weeks
Days after the full weeks
1 days
Years
1 years
Months
0 months
Days after the full months
0 days
Business days (Monday–Friday)
261 days
Step by step
  1. Days

    days = end − start + 1

    days = 2026-12-31 − 2026-01-01 + 1 = 365 days

  2. Full weeks

    full weeks = ⌊days / 7⌋

    full weeks = ⌊365 / 7⌋ = 52 weeks

  3. Days after the full weeks

    remaining days = days − 7 × full weeks

    remaining days = 365 − 7 × 52 = 1 days

  4. Business days (Monday–Friday)

    business days = days − Saturdays and Sundays

    business days = 365 − 104 = 261 days

Sources (3)

Guides

Terms

Topic