Skip to content

Dates and time

Date difference calculator

Count days between dates, since a date or until a date using today on your device. Add or subtract calendar days and see the interval in weeks, years, months and days.

How it worksFAQRelated tools

Content reviewed:

Also available for Germany, in German 
Also available for Poland, in Polish (dobrykalkulator.pl) 

Use YYYY-MM-DD with leading zeroes, from year 0001 to 9999. Choose a mode and Calculate. Since/Until use the device date at that moment. The end must not precede the start. Day offsets are signed whole numbers from −3652058 to 3652058, with a resulting date inside the supported range.

This is civil-date arithmetic under a proleptic Gregorian calendar. Today uses your device’s local date; no ticking countdown is shown. Endpoint choices affect counted dates and their weeks, while elapsed days and the month-anchor interval ignore those choices. No working-day, holiday, clock-duration or legal-deadline rules are applied. In shift mode, choose days or weeks; positive values move forwards and negative values backwards.

Decimal results are approximate. Inputs stay in this browser tab.

Sources

How it works

Elapsed days = end ordinal − start ordinal. For distinct dates, counted dates = elapsed days − 1 + included start + included end. For the same date, count one only when both ends are included. Weeks use the counted dates. Calendar years/months/days use the original-start month anchor and the elapsed gap.

Worked example

28 February 2024 to 1 March 2024: two elapsed days; counting both endpoints gives three dates. Adding one day to 28 February 2024 gives 29 February 2024.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Calculation
Days between dates
Start date (YYYY-MM-DD)
2024-02-28
End date (YYYY-MM-DD)
2024-03-01
Include start date in date count
✓
Decimal places (0–12)
6

Result

Elapsed calendar days
2
Dates counted with selected endpoints
2
Start date used (YYYY-MM-DD)
2024-02-28
End date used (YYYY-MM-DD)
2024-03-01
Full weeks in the counted dates
0
Remaining counted dates after full weeks
2
Completed calendar years in the elapsed gap
0
Remaining completed calendar months
0
Remaining calendar days after the month anchor
2
Month anchor date (YYYY-MM-DD)
2024-02-28

Frequently asked questions

How do I count the days between two dates?

Choose Days between dates and enter a start and end date. Elapsed days are the end date minus the start date, and you can decide whether the start and end dates are included in the count of dates.

How many days are there from 28 February to 1 March 2024?

There are two elapsed days, and three dates if both endpoints are counted, because 2024 includes 29 February.

Can I add or subtract days from a date?

Yes. Enter a signed number of calendar days or 7-day weeks: positive values move forwards and negative values move backwards. Adding one day to 28 February 2024 gives 29 February 2024.

How do the days since and days until modes work?

They use your device's local date at the moment you calculate. No ticking countdown is shown.

Does the date calculator skip weekends and bank holidays?

No. It applies no working-day, holiday, clock-duration or legal-deadline rules, only civil-date arithmetic.

Which dates are supported?

Dates in YYYY-MM-DD format from year 0001 to 9999, using a proleptic Gregorian calendar. The end date must not be before the start date.