Date Difference Calculator
Count the calendar days between two dates.
Preparing the calculator…
How it works
This calculator counts the calendar days between two dates and also shows the gap as weeks and days, and as years, months and days.
By default it counts from the start date up to, but not including, the end date, which is how most date differences are quoted. Tick “Count the end date as well” to include both dates, for example when counting the days of a booking or a leave period that includes the last day.
Leap years are handled in full. For the years, months and days breakdown, the calculator adds whole years and then whole months to the earlier date. If that day does not exist in the target month, it uses the month's last day, so 31 January plus one month is 28 February (29 in a leap year).
It counts calendar days only. It does not skip weekends or public holidays and does not apply employment, contract or notice-period rules. It uses the Gregorian calendar.
Worked examples
1 January to 31 January 2026
The difference is 30 days, which is 4 weeks and 2 days.
The same dates, counting the end date
With the end date included, 1 to 31 January 2026 is 31 days.
Across a leap day
28 February to 1 March 2024 is 2 days, because 2024 is a leap year and includes 29 February. In 2025 the same dates are 1 day apart.
When a month is shorter
- 31 January to 1 March 2026 is 29 days.
- In calendar terms it is 1 month and 1 day: 31 January plus one month is 28 February, because February 2026 has no 31st, and one more day reaches 1 March.
1 January 2000 to 1 January 2026
26 years is 26 × 365 = 9,490 days plus 7 leap days (2000, 2004, 2008, 2012, 2016, 2020 and 2024): 9,497 days in total.
Frequently asked questions
Are both the start date and the end date counted?
By default the start date is counted and the end date is not, so 1 to 31 January is 30 days. Tick “Count the end date as well” to include both dates; the same period is then 31 days.
Does it skip weekends and public holidays?
No. It counts calendar days only. Working days depend on your weekend, the UAE public holidays announced each year and any employment or contract rules, so they are not calculated here.
How are leap years handled?
29 February is counted in leap years such as 2024 and 2028. That is why 28 February to 1 March is 2 days in 2024 but 1 day in 2025.
How are months counted when a month is shorter?
Whole months are added to the earlier date. If that day does not exist in the target month, the month's last day is used: 31 January plus one month is 28 February, or 29 February in a leap year.
What if the end date is before the start date?
The calculator measures the gap either way round, so swapping the two dates gives the same number of days.
Can I enter Hijri dates?
No. The calculator uses the Gregorian calendar only, for dates from 1900 to 2100. Convert Hijri dates to Gregorian dates first.
Last updated

