Everyday tools · on your device
Date difference calculator and date arithmetic
Find elapsed days and calendar duration, or add/subtract years, months and days in Gregorian or Umm al-Qura.
Range: 1300–1600 AH / 1882-11-12 to 2174-11-25. Enter year-month-day.
- Duration in selected calendar
- 0 years, 0 months, 0 days
- Day count
- 0
Processing stays in your browser. We neither transmit nor store your inputs.
How to use this tool
- Choose the calendar and operation. For a difference, enter both dates in the selected calendar, with the second on or after the first. For addition or subtraction, enter a starting date and whole years, months and days; use negative offsets to subtract.
- Day-count example: Gregorian 2026-10-11 to 2026-10-17 spans 6 elapsed days. Include start date changes the count to 7. Identical dates give 0, or 1 when including the start.
- In the same example, excluding Friday and Saturday gives 4 days, or 5 when including the start, which is a Sunday. This option removes only Friday and Saturday, not public holidays or another country’s weekend.
- Month-addition example: in Gregorian, start with 2024-01-31 and enter 0 years, 1 month and 0 days. The result is 2024-02-29 because February has no day 31. Setting the days offset to 1 gives 2024-03-01: years and months are applied before days.
- To subtract, start with 2024-03-01 and enter 0 years, 0 months and -1 day to get 2024-02-29. Adding a month and subtracting it may not restore the original date: January 31 becomes February 29, then subtracting a month gives January 29.
- We use the ICU 78.1 Umm al-Qura table for 1300–1600 AH: 1882-11-12 to 2174-11-25. Dates outside this range are rejected, without another calendar method. Software validation against ICU is not government certification.
A few useful answers
Why do the years and months stay unchanged when I change counting options?
The duration row counts complete calendar years and months followed by remaining days. Including the start and excluding Friday/Saturday affect only the day-count row. Months are not fixed at 30 days and years are not fixed at 365, so Hijri and Gregorian duration breakdowns can differ for the same two days.
What should I check if an error appears?
Check YYYY-MM-DD order and whether the day exists in that month. In difference mode, the second date cannot precede the first. In addition mode, use whole-number offsets and keep both the start and result inside the supported range. Subtracting days uses a negative offset and needs no second date.
Is this a legal deadline?
No. This calculates dates without legal deadline or holiday rules.
How are day boundaries and conversion defined?
Conversions use civil dates without a time: no sunset rollover or dependency on your device timezone. Today uses Riyadh time. Religious moon-sighting determinations can differ from calculated calendars.
Are my inputs stored?
No. Calculations and files stay in your browser. Shared tool links contain no entered details.