ABDALLAT & CO

Calculate the duration between two dates

Enter two dates and choose the unit of duration to calculate the difference between them.

Enter the start date as a number in the format YYYYMMDD (e.g., 20230101 for January 1, 2023).

Enter the end date as a number in the format YYYYMMDD (e.g., 20231231 for December 31, 2023).

Choose the unit of duration you want to calculate (days, weeks, months, or years).

Duration
—

The duration between the start and end dates, calculated in days.

Rounded duration
—

The duration between the start and end dates, rounded to the nearest whole number.

How it works

Assumptions

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.