ThisCalculator

Date and time

Calculate Weeks Between Dates: Formula and Examples

Updated · Standard formula, shown below

Weeks between dates 3.00 weeks
Elapsed days
21 days
Result
Extra days after whole weeks
0 days
Result
Start date (day number)
1 days
You entered

Calculate Weeks Between Dates: Formula and Examples

To calculate the weeks between two dates, find the number of calendar days between them and divide by 7. Enter a start date and an end date to get the elapsed time in weeks, with any remaining days shown separately.

Formula

Elapsed weeks = elapsed days ÷ 7. In symbols, W = D ÷ 7, where W is the elapsed time in weeks and D is the number of calendar days from the start date to the end date. One week is 7 days.

This calculator uses day numbers as inputs: the dates must first be converted to consecutive calendar-day numbers on the same date system. For example, if a chosen day-number convention assigns 1 to the start date and 22 to the end date, their difference is 21 days. The calculator then reports 3 weeks, 21 days, and 0 extra days. The day numbers are not month-and-day notation; enter the number assigned to each full date after converting it using a date-aware tool or calculation.

Worked Example

Using the calculator’s default values, the start day number is 1 and the end day number is 22:

  1. Elapsed days: 22 − 1 = 21 days.
  2. Elapsed weeks: 21 ÷ 7 = 3.00 weeks.
  3. Whole weeks: 3, with 21 − (3 × 7) = 0 extra days.

The result is 3.00 weeks, or 21 days, with no remaining days. The default values represent a 21-day span; they are illustrative day numbers, not calendar dates to type as month/day values.

What “Between Dates” Means

For most date calculations, the interval is the elapsed time from the start date to the end date. The start date is not counted as a full elapsed day: from Monday to Tuesday is one day, not two. This is sometimes called an exclusive-start count.

An inclusive count instead counts both named dates. If someone asks how many calendar dates are included in a range from Monday through Sunday, the inclusive answer is seven dates. But the elapsed time between Monday and the following Sunday is six days. Clarify which convention is intended when planning schedules, counting attendance, or checking a date range.

Dates also need a year. The span from December 28 to January 4 crosses a year boundary, and the number of days depends on the actual calendar. Leap years add February 29, so dates in or around February can produce different day totals in different years. Convert complete dates to day numbers using a calendar that accounts for month lengths and leap years.

How to Calculate It With Calendar Dates

For ordinary date-only calculations, follow these steps:

  1. Write down the complete start and end dates, including the year.
  2. Choose the counting convention: elapsed days, or an inclusive count of dates.
  3. Count the elapsed calendar days between the dates, accounting for month lengths and leap days.
  4. Divide the elapsed-day total by 7. The quotient is weeks; the remainder is extra days.

For example, 45 elapsed days equal 6 weeks and 3 days, because 45 = (6 × 7) + 3. As a decimal, 45 ÷ 7 is about 6.43 weeks. The weeks-and-days form is often easier to interpret for a calendar schedule, while the decimal form is useful when a calculation specifically needs a single numeric value.

Calendar Weeks Versus Exact Durations

Dividing elapsed days by seven gives a duration in seven-day units. It does not count how many calendar weeks a range touches. A date range lasting only two days may cross from Sunday into Monday and therefore touch two named calendar weeks, depending on the week-start convention, while still being only 2 ÷ 7 weeks long.

Likewise, a date-only calculation treats each date as a calendar day. If exact elapsed time matters—for example, a span from one time of day to another—subtract the timestamps, not just the dates. Daylight-saving clock changes can make a local calendar day shorter or longer than 24 elapsed hours. For precise elapsed hours, use timestamps with appropriate time-zone information and calculate the actual time difference before converting to weeks.

Common Mistakes and Limits

  • Counting both endpoints by default: That adds a day compared with elapsed-time counting. Use an inclusive count only when the question asks how many dates are included.
  • Ignoring the year or leap day: A month is not a fixed number of days, and February has 29 days in leap years.
  • Rounding too soon: Keep the full day count, divide by 7, and round only the final decimal if needed. A rounded decimal can hide remaining days.
  • Confusing weeks with calendar-week boundaries: Elapsed weeks are based on seven-day periods; calendar-week counts depend on which day begins the week and how partial weeks are treated.
  • Using day numbers as dates: The calculator’s inputs are consecutive day numbers, not entries like 2026-03-01. Convert the full dates first.

The calculation does not decide whether a particular organization, contract, or deadline uses inclusive dates, business days, a special week definition, or a time-zone rule. Check the relevant instructions when those conventions affect the result.

Frequently Asked Questions

How many weeks are between two dates?
Count the elapsed days between the dates and divide by 7. For instance, 28 elapsed days equal exactly 4 weeks.

How do I calculate weeks and days between dates?
Divide the elapsed-day total by 7. The whole-number quotient is complete weeks; the remainder is extra days. For 31 days, that is 4 weeks and 3 days.

Do I count the start date?
Not when calculating elapsed time: the day after the start is one day later. Count both endpoints only if you want the number of dates included in the range.

Does a leap year change the number of weeks?
It can change the elapsed-day total by one when February 29 falls within the date range. Divide the correctly counted days by 7 afterward.

Can the answer be a decimal?
Yes. Divide days by 7 and keep the decimal, such as 10 days ÷ 7 = about 1.43 weeks. For a calendar-friendly answer, report 1 week and 3 days instead.

Related

Formula used
in start | Start date (day number) | days | 1 | 0
in end | End date (day number) | days | 22 | 0
out weeks | Weeks between dates | weeks | (end - start) / 7 | 2
out days | Elapsed days | days | end - start | 0
out remainder | Extra days after whole weeks | days | (end - start) - floor((end - start) / 7) * 7 | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.