Datum & Tid

Date Duration Calculator

Calculate the days, weeks, months, and years between two dates.

Hur man använder

Pick a start and end date to see the total number of days, plus a breakdown in weeks, months, and years.

Vanliga frågor

How does this calculator count months?

It uses calendar-aware month counting, so a span from Jan 31 to Feb 28 counts as a partial month, not a full one. Variable month lengths are handled correctly.

What if my end date is before my start date?

The calculator still works and shows the absolute duration. A small note flags that the end date is earlier than the start date.

Does this count leap years?

Yes — using real Date arithmetic means leap days are automatically included in the total day count.

How to Use the Date Duration Calculator

Find the total days, weeks, months, and years between any two dates.

  1. Choose a start date using the date picker.
  2. Choose an end date.
  3. View total days, a calendar-aware breakdown, and a friendly summary.

Duration Calculation

Total Days

Days = |End − Start| ÷ 86,400,000 ms

Calendar-aware difference, handling leap years and variable month lengths.

Example:

Input: Jan 1 → Feb 1

Calculation: 31 days

Result: 31 days

Real-World Use Cases

Project Planning

Count days between milestones for scheduling.

Countdowns

See the days until a vacation, wedding, or deadline.

Tips

Tips

  • End dates before start dates still work, but show an absolute duration.
  • Calendar months and years are computed field-wise, not just from total days.
Mathify – Beräkna vad som helst på några sekunder