EVERYDAY CLARITY

Weeks Between Dates Calculator

Count complete weeks and remaining calendar days between two dates.

Enter your values

01
Gregorian calendar date in YYYY-MM-DD format; years 0001 through 9999.
Gregorian calendar date in YYYY-MM-DD format; years 0001 through 9999.

Use the stated calendar or timestamp format.

Your result
Weeks
2
Remaining days
2

Result for the values shown.

Calculations run in your browser.

What to enter
InputMeaning and units
StartGregorian calendar date in YYYY-MM-DD format; years 0001 through 9999.
EndGregorian calendar date in YYYY-MM-DD format; years 0001 through 9999.

Understanding your result

Calendar results use the stated counting and anniversary convention. Complete months and years differ from fixed day counts.

Common mistakes

  • Counting both end dates when the method excludes a boundary, or assuming all months have equal length.
  • Assuming the ISO week-year always equals the calendar year.

Check your calculation

  • Test a short known interval and a leap-day boundary; for working days, verify your holiday list.

Calculation checks, sources and review limits

How many full weeks and extra days are between these dates?

Count complete weeks and remaining calendar days between two dates.

Common uses

  • Count complete weeks and remaining calendar days between two dates.

How it works

weeks=floor(days/7); remainingDays=days%7 Calendar arithmetic uses the proleptic Gregorian calendar. Explicit calendar dates are independent of local daylight-saving changes. Month/year additions clamp to the last valid day of the destination month. Timestamp arithmetic requires a stated UTC offset and excludes leap seconds.

Worked example

Enter Start: 2024-01-01; End: 2024-01-17. The result is Weeks: 2; Remaining days: 2.

FAQ

How many full weeks and extra days are between these dates?

weeks=floor(days/7); remainingDays=days%7 Calendar arithmetic uses the proleptic Gregorian calendar. Explicit calendar dates are independent of local daylight-saving changes. Month/year additions clamp to the last valid day of the destination month. Timestamp arithmetic requires a stated UTC offset and excludes leap seconds.

What assumptions and limits apply?

Inputs and results must stay within the stated supported ranges.