Date Difference Calculator

Date Difference Calculator

This calculator works out the period between two Gregorian dates precisely: the total number of days, the breakdown in years, months and days in the Gregorian calendar, and the equivalent breakdown in Hijri years, months and days per the official Umm al-Qura calendar. The form above is pre-filled with a ready example: from the start of Ramadan to Eid al-Fitr this year (exactly 29 days).

The two results differ because a Hijri year has 354 or 355 days while a Gregorian year has 365 or 366: roughly every 33 Gregorian years match 34 Hijri years, so Hijri years gradually run ahead of their Gregorian counterparts.

When is a date difference useful?

Muslims use date differences for many practical purposes: Hijri age, the waiting period (iddah) in personal-status matters, contracts and official wording in both calendars, the gap between two marriages or two contracts, and the time remaining until an upcoming occasion such as Ramadan, Hajj or the two Eids.

Frequently asked questions