How many days are there between the two dates? Count the start and end day correctly
Learn the difference between a date difference and both days inclusive. Compare lunar boundary, leap year and weekday calculations with clear examples.
Date difference and included days
One day passes from November 1 to November 2. But if you count both November 1 and November 2 in the list, you get two calendar days. These are two separate scoring rules, each answering a different question.
The difference between the two dates indicates the number of days that have passed. 1 is added to the difference between the beginning and the last day. If the dates are the same, the difference is zero days, and both boundaries are counted by one day.
Number of days including both dates = date difference + 1 (start ≤ end)
Compare the examples side by side
The table includes only calendar dates; clock and time zone differences are not calculated. The start date is before or equal to the end date in all examples.
| Date range | The difference | Both days included |
|---|---|---|
| 1–2 noyabr 2026 | 1 day | 2 days |
| 1–30 noyabr 2026 | 29 days | 30 days |
| 31 yanvar–1 fevral 2026 | 1 day | 2 days |
| 5–5 may 2026 | 0 days | 1 day |
Lunar border and long year
By taking 30 days of each month, the date difference cannot be found accurately. January 31, April 30 days. February is 28 days in a regular year and 29 days in a leap year. Therefore, the calculation should be done on actual calendar dates.
In the Gregorian calendar, years divisible by 4 are usually long years. Years divisible by 100 are exceptions, but years divisible by 400 are again considered long years. For example, 2024 is a leap year, 2026 is a common year, 2000 is a leap year, and 2100 is a common year.
In 2026, the difference between February 28 and March 1 is 1 day. In 2024, February 29 is the same month and day, so the difference is 2 days. The same rule applies to age and past history calculations.
A calendar day is not the same as a business day
The number of calendar days includes weekends. For the number of working days, the working week model must first be selected, then the corresponding non-working days must be subtracted. Five-day and six-day work weeks may not produce the same results.
The dates of holidays and the transfer of rest days depend on the country and the year. Therefore, the list of one year cannot be applied to another year. The working day section on the meter.az website currently uses the five-day working week calendar of Azerbaijan for 2026 and does not provide this calculation for other years.
Before starting the calculation, determine three things: do you need a calendar day or a business day; whether the start and end days are included; which year and work week apply. When these options are clear, it is also easier to compare results.