Use this weeks between dates calculator to find the exact interval between two calendar dates. See complete weeks, remaining days, total days, decimal weeks, and weekdays, with an option to include the end date.
Calculate weeks between two dates
Weeks between dates formula
The calculator treats each input as a calendar date at UTC midnight, avoiding daylight-saving changes that can otherwise create 23-hour or 25-hour local days.
Total days = (end date − start date) ÷ 86,400,000 milliseconds.
Complete weeks = floor(total days ÷ 7). The remaining days equal total days modulo 7. Decimal weeks equal total days divided by 7.
Inclusive versus exclusive counting
An exclusive interval counts the elapsed day boundaries from the start date up to, but not including, the end date. January 1 to January 8 is therefore exactly 7 days, or 1 week.
Inclusive counting adds one day because both endpoints are counted. The same January 1–8 range becomes 8 days, or 1 week and 1 day.
How weekdays are counted
For schedules, the Weeks Between Dates Calculator provides a separate weekday total. The weekday result examines every included date in the selected interval and counts Monday through Friday. Saturdays and Sundays are excluded. Holidays are not removed because holiday calendars differ by country, region, employer, and year.
Worked examples
The Weeks Between Dates Calculator keeps each example tied to actual calendar days rather than an estimated month length.
| Date range | Convention | Result |
|---|---|---|
| January 1 to January 8 | End date excluded | 1 week, 0 days |
| January 1 to January 8 | End date included | 1 week, 1 day |
| February 1 to March 1, 2024 | End date excluded | 4 weeks, 1 day (29 days) |
The leap-year example contains February 29. Gregorian leap years normally occur every four years, except century years must also be divisible by 400.
How to use the weeks between dates calculator
- Select the earlier date in the Start date field.
- Select the later date in the End date field.
- Choose whether to include the ending date.
- Select Calculate weeks to display the detailed interval.
- Copy the result, download a CSV file for Excel, or print the page to PDF.
If the dates are reversed, use Swap dates or correct the entries. The result remains hidden until a valid calculation is requested.
Understanding calendar weeks
A week is a fixed duration of seven days, but calendar months and years are not fixed multiples of weeks. Months contain 28, 29, 30, or 31 days, while Gregorian years contain 365 or 366 days. This is why a date interval is first measured in days and then divided into complete seven-day weeks.
ISO 8601 provides an internationally understood year-month-day date representation and also defines calendar week dates. The browser date fields use an unambiguous machine-readable date value even when the visible format follows your device settings.
Weeks Between Dates Calculator FAQs
How many weeks are between two dates?
Subtract the start date from the end date to get total days, then divide by seven. This calculator shows complete weeks, remaining days, and decimal weeks.
Does the calculator include the last day?
Not by default. Select “Include the end date” when both the starting and ending calendar dates should count.
Does it handle leap years?
Yes. The calculation uses actual Gregorian calendar dates, so February 29 is included whenever it falls inside the selected interval.
Are weekends included?
Total days and weeks include every calendar day. A separate weekday result counts Monday through Friday only.
Are holidays removed from weekdays?
No. Holiday schedules vary by location and organization, so confirm business-day deadlines with the relevant authority.
Standards and related calculators
Date notation follows the principles of ISO 8601. Calendar-length and leap-year background is supported by the NIST Time and Frequency Division.
From January 1 to January 22, the elapsed-time method gives 21 days, or exactly 3 weeks. Inclusive counting adds both boundary dates and returns 22 days, or 3 weeks and 1 day. Choose the method required by your contract, itinerary, benefit rule, or project plan, because the correct interpretation can change even when the two calendar dates stay the same.
Weeks Between Dates Calculator Example