Calculate the duration between two dates
Enter two dates and choose the unit of duration to calculate the difference between them.
- Duration
- —
- Rounded duration
- —
The duration between the start and end dates, calculated in days.
The duration between the start and end dates, rounded to the nearest whole number.
How it works
Assumptions
- The calculator assumes the Gregorian calendar is used
- The calculator assumes the start date is before the end date
All calculations run in your browser. Nothing you enter is sent or stored.
Frequently asked questions
What format should I use for the dates?
Enter the dates as numbers in the format YYYYMMDD (e.g., 20230101 for January 1, 2023).
Can I calculate the duration in weeks or months?
Yes, you can choose to calculate the duration in days, weeks, months, or years.
What if the start date is after the end date?
The calculator will show an error. Make sure the start date is before the end date.