Date Difference Calculator

Count the exact difference between two dates — in years, months and days, and in total days and weeks. Both dates are also shown in Hijri.

Difference
—
Total days—
Total weeks—
Total months—
From date in Hijri—
To date in Hijri—

How the difference is counted

The calculator counts complete years, then complete months, then the remaining days between the two dates — borrowing the days of the previous month when needed, the same method used for age and service-period calculations. The total days figure counts every day between the dates, not including the start day itself.

Common uses: counting down to Ramadan, a wedding or a flight; working out a contract or notice period; checking how long is left on a visa, an iqama or a warranty. For a person's age, the age calculator adds birthday extras; to convert a single date, use the Hijri date converter.

Worked example

Between 1 January 2025 and 20 November 2026 there are 688 days — that is 1 year, 10 months and 19 days, or 98 weeks and 2 days.

Common uses for a date difference

People count the days between two dates for many everyday reasons: counting down to a wedding, a flight or the start of Ramadan, working out exactly how long a project, a contract or a rental period lasts, or checking how many days are left before an iqama, a licence or a subscription expires.

One point causes most confusion: this calculator counts the full days between the two dates, without adding the starting day itself. If you need an inclusive count — for example hotel nights plus the arrival day, or a leave period that includes both the first and the last day — simply add 1 to the total days shown.

Calculating the difference between two dates in Excel

If your dates live in a spreadsheet, put the start date in cell A2 and the end date in cell B2, then use these formulas:

Note: DATEDIF is an older compatibility function that still works in Microsoft Excel and Google Sheets; type it manually, as it may not appear in the function list.

What about working days?

This calculator counts consecutive calendar days, weekends included. Some official deadlines and contracts, however, are counted in working days instead, and the Saudi weekend is Friday and Saturday.

To estimate the working days in a period, start from the total days, subtract the Fridays and Saturdays that fall inside it, and also subtract official holidays that fall on working days — such as Eid al-Fitr, Eid al-Adha, Founding Day and National Day — bearing in mind that these holidays differ by year and by sector (public or private).

Above all, always follow the counting method stated by the authority or set out in your contract.

Frequently asked questions

How do I count the days between two dates?

Enter the two dates above. The calculator counts the exact number of days between them — not counting the start day itself, the standard convention. It also breaks the period into years, months and days, and into total weeks and months.

Does the order of the dates matter?

No. If the second date is earlier than the first, the calculator swaps them automatically and shows the same positive difference.

How many days are there between 1 January 2025 and 20 November 2026?

688 days — that is 1 year, 10 months and 19 days, or 98 weeks and 2 days.

Can I see the two dates in Hijri?

Yes. The results table shows both dates converted to the Hijri (Umm al-Qura) calendar, which is useful for comparing official Saudi dates.

How can I count days until a future event?

Set the first date to today and the second to the event date — a wedding, a flight, Ramadan or a contract deadline — and the total days figure is your countdown.

Can I calculate the difference between two Hijri dates?

Yes, with one extra step: this calculator takes Gregorian dates. If both of your dates are Hijri — like an iqama issue date and its expiry — convert each one to Gregorian first with the Hijri date converter, then enter the two Gregorian dates here; the number of days between them is the same in any calendar.

Related tools

Hijri dates follow the Umm al-Qura calendar and can differ by a day from local moon-sighting calendars.