Intermediate

Weeks Between Two Dates

Count the exact number of weeks between any two calendar dates, broken down into full weeks, leftover days, and a precise decimal total.
Any recognizable date format
Any recognizable date format
Decimal weeks
25.29

25 full weeks + 2 days

Weeks from days
177 ÷ 7 = 25.29 weeks
2026-01-012026-06-2725.29 weeksPartial week progress within the remaining days
Full weeks
25
Remaining days
2
Decimal weeks
25.29
Total days
177
Step by step
  1. 1

    Days between dates

    177
    ⌊|end − start| ÷ 86,400,000 ms⌋ — partial days are dropped.
  2. 2

    Full weeks

    ⌊177 ÷ 7⌋ = 25
  3. 3

    Remaining days

    177 mod 7 = 2
  4. 4

    Decimal weeks

    177 ÷ 7 = 25.29
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Subtract the start date from the end date, take the absolute value, and divide the resulting whole days by 7. The integer part is full weeks, the remainder is leftover days, and the full quotient is the decimal week count. Date order does not matter and partial days are ignored.

Formula
weeks = |end − start| in days ÷ 7
How this is calculated

Enter a start date and an end date in any recognizable format (for example YYYY-MM-DD). Each date is parsed into a millisecond timestamp, and the calculator takes the absolute difference so the order of the two dates never matters — you always get a positive result.

The difference in milliseconds is divided by 86,400,000 (the number of milliseconds in a day) and floored to give the total whole days. Total days is then split into full weeks (the integer quotient of days ÷ 7) and remaining days (the remainder, 0 to 6). The decimal week count is simply total days ÷ 7, which keeps the fractional part for a continuous measure.

This uses calendar-day differences, so partial days are dropped by the floor operation, and daylight-saving shifts can affect dates near a clock change since parsing assumes the local time zone. Identical start and end dates return zero weeks and zero days.

Frequently asked questions

No. The calculator uses the absolute difference, so swapping the start and end dates gives the same number of weeks and days.

Full weeks is the whole-number count of complete 7-day periods, with the leftover shown as remaining days. Decimal weeks expresses the same span as a single fractional number, for example 3.5 weeks instead of 3 weeks and 4 days.

No. The total-day count is floored, so any time-of-day component is dropped and only whole calendar days contribute to the week totals.

Also known as

weeks between dates
how many weeks between
week difference calculator
weeks until
count weeks
weeks apart
number of weeks between
week span calculator

APA

TG we-Calculate Editorial Team. (2026). Weeks Between Two Dates [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/weeks-between-dates

Chicago

TG we-Calculate Editorial Team. "Weeks Between Two Dates." TG we-Calculate. 2026. https://we-calculate.com/calculator/weeks-between-dates.

IEEE

TG we-Calculate Editorial Team, "Weeks Between Two Dates," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/weeks-between-dates

BibTeX

@misc{wecalculate_weeks_between_dates, title = {Weeks Between Two Dates}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/weeks-between-dates}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?