Date & Time · Formula v1.0

Date Difference Calculator

Calculate the number of days and weeks between two dates.

A negative result means the end date falls before the start date. At the worked-example inputs, the days between is 239. The result is the number of calendar days and weeks between two dates. On the example, 239 days is about 34 weeks. Use it to check the length of a project, a lease, a warranty, a waiting period or the time since an event. For a deadline expressed in business days, use the business days calculator instead, since weekends and holidays are not counted the same way. For months and years, use the age calculator. It returns days between, weeks between.

FreeNo sign-upInputs stay in-browserCSV exportReviewed August 28, 2026
LAST REVIEWEDAugust 28, 2026Inputs stay in your browser
Live calculation

Enter your numbers

Calculated result
Days between239
Weeks between34.1
Sensitivity check

What if start date changes?

-10% input246
0% input239
+10% input232

Transparent method

The formula

Days between = end date − start date

Worked example

Days between239
Weeks between34.1

Example inputs

Start dateJanuary 1, 2026
End dateAugust 28, 2026

How to interpret the result

A date difference spanning a leap year needs that extra day accounted for, or the day and week count comes out one short, since February's additional day in a leap year is a real calendar day sitting between two arbitrary dates, not an adjustment that can be skipped without changing the actual count.

Before you rely on it

What to check

Confirm whether any leap year falls within the counted date range, since that adds a real day to the total that a simple 365-day-per-year assumption would miss.

The common error

Where people go wrong with date difference calculator

Estimating a date difference using a flat 365-day-per-year assumption across a range that spans a leap year. That undercounts the true difference by one full day for each leap year crossed.

Sensitivity evidence

How start date changes the days between

Date Difference Calculator: days between and weeks between across a range of start date, every other input held at the worked-example value.
Start dateDays betweenWeeks between
December 18, 202525336.1
December 25, 202524635.1
January 1, 2026worked example23934.1
January 8, 202623233.1
January 15, 202622532.1

Every input, tested

Which input moves the days between most

Date Difference Calculator: days between with each input moved on its own, every other input held at the worked-example value.
InputTested fromToDays between at each endSwing
Start dateDecember 25, 2025January 8, 2026246 to 23214 (5.9%)
End dateAugust 21, 2026September 4, 2026232 to 24614 (5.9%)

Two variables at once

Days between by start date and end date

Date Difference Calculator: days between at each combination of start date (rows) and end date (columns).
Start date \ End dateAugust 14, 2026August 28, 2026September 11, 2026
December 18, 2025239253267
December 25, 2025232246260
January 1, 2026225239253
January 8, 2026218232246
January 15, 2026211225239

Step by step

The worked example, input by input

Worked-example inputs and the results they produce for the date difference calculator.
InputValue usedWhat it means
Start dateJanuary 1, 2026
End dateAugust 28, 2026Defaults to today.
Days between239
Weeks between34.1

Inputs, definitions and assumptions

Start date

End date

Defaults to today.

Where the inputs come from

Enter the start date and the end date of the interval you want to measure. The tool counts the days between them and converts to weeks. Decide whether you want to count the end date as well: this calculation subtracts one date from the other, so the day count excludes the start date, which matches how most people count the time between two dates. Check the year on both dates, especially across a leap year.

When the result stops applying

Counting conventions vary: contracts may include or exclude the first and last day, and some legal periods count the last day only if it is a business day. Leap years add a day in February. Time of day is ignored. Months have different lengths, so converting days to months is approximate.

What to compare it with

Count the weekdays on the business days calculator, find a future date on the add days to date page, and count down on the day counter. The day of the week calculator identifies the weekday, and the age calculator counts years. Check the contract for how the period is defined.

People also ask

Frequently asked questions

Does the day count include the start date?

This calculation subtracts one date from the other, so it does not count the start date. Add one if you want both the first and last day included.

How do I count business days between two dates?

Use the business days calculator, which excludes weekends from the count. Public holidays need to be subtracted separately because they vary by location.

Why does a period of 30 days differ from one month?

Months vary from 28 to 31 days, so a month is not a fixed number of days.

Common date & time questions

Sources and evidence