RunTheTests
/

Date Difference Calculator

Days, weeks, months and weekdays between two dates — counted the way people mean.

What you provide

Result

358 days — 11 months and 24 days

Counting forward from today, the two dates are 358 calendar days apart. The month figure counts whole calendar months and then the days left over, which is what people mean by "three months and four days" — dividing days by 30 gives a different and less useful answer, because months are not a fixed length. The weekday count excludes Saturdays and Sundays only; public holidays vary by country and are not applied.

Diagnostic telemetry
Days
358
Weeks
51 weeks, 1 days
Months
11 months, 24 days
WeekdaysMonday to Friday, excluding public holidays
256
Hours
8,592

What this cannot tell you

  • Calculated in your browser. Nothing you enter is uploaded or logged.
  • Counts calendar days rather than elapsed time, so daylight-saving changes cannot produce a fractional day. That is what people mean by "days between" and it is not the same as hours divided by 24.
  • The weekday count excludes Saturdays and Sundays only. Public holidays vary by country and region and are not applied.
  • Months are counted as whole calendar months plus the days left over, because months are not a fixed length. Dividing days by 30 gives a different answer and a less useful one.

Take this with you

How this calculation works

The two dates are compared as calendar days, not as timestamps. That matters more than it sounds: a difference measured in milliseconds crosses daylight-saving boundaries and produces answers like 89.96 days, which then round the wrong way. Months are counted by walking forward whole calendar months from the earlier date and reporting the leftover days, which is what someone means by "three months and four days" — the alternative, dividing by 30, disagrees with the calendar in most months of the year.

What the results mean

Days
Calendar days between the two dates. The end date is counted, the start date is not.
Months and days
Whole calendar months first, then the remainder. February to March is one month whether it is 28 days or 29.
Weekdays
Monday to Friday only. Useful for delivery and notice periods, and not adjusted for any country's holidays.
Weeks
Whole weeks and the days left over, which is how notice periods and pregnancies are usually counted.

Common problems and fixes

The month count does not match what I expected
Months are counted as calendar months, so 31 January to 28 February is one month. Dividing days by 30 gives a different answer, and it is the one that disagrees with the calendar.
I need working days excluding holidays
The weekday figure excludes weekends only. Subtract the public holidays for your own country and region — they differ enough that applying a set would be wrong for most visitors.
The result is off by one
The start date is not counted and the end date is. For an inclusive count — the number of days something runs for, including both ends — add one.

Frequently asked questions

How many days are between two dates?

Enter both above. The count is of calendar days with the end date included and the start date not, which is the convention for notice periods and deadlines. If you want both ends counted — the length of a holiday, for instance — add one to the figure.

Why is the month count not just days divided by 30?

Because months are between 28 and 31 days long, so a fixed 30 disagrees with the calendar in almost every month. Counting whole calendar months and then the leftover days matches how people and contracts actually count them.

Does this handle leap years?

Yes. The dates are compared on the calendar, so 29 February exists where it should and the day counts across it are correct without any special handling.

Put this on your own site

Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.

Embed code
<iframe src="https://runthetests.com/embed/date-difference-calculator/" width="100%" height="560" style="border:1px solid #e5e5e5;border-radius:8px" title="Date Difference Calculator" loading="lazy"></iframe>

Preview it at https://runthetests.com/embed/date-difference-calculator/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.

More in Time