Days between dates calculator: how long between two dates
Enter a start date and an end date and this date difference calculator gives the gap in years, months and days, and in total months, weeks, days and hours. It also counts the working days (Monday to Friday) and weekend days in between. Use it for project timelines, notice periods, warranty and return windows, pregnancy or event countdowns, and anything else where you need to know exactly how many days lie between two dates.
Including or excluding the end date
By default the start date is day zero, so 1 January to 2 January is 1 day. Tick the option to include the end date and that same range becomes 2 days, because both the first and the last day are counted. Hotels count nights (end date excluded); leave and attendance records usually count days (end date included). Check which one your document expects.
Days between popular date ranges
| Range | Days | Weeks |
|---|---|---|
| 1 Jan 2027 to 1 Apr 2027 | 90 | 12.9 |
| 1 Jan 2027 to 31 Dec 2027 | 364 | 52 |
| 15 Aug 2026 to 26 Jan 2027 | 164 | 23.4 |
| 1 Mar 2028 to 1 Mar 2029 | 365 | 52.1 |
The last row shows a leap-year effect: 1 March 2028 to 1 March 2029 is 365 days, but 1 March 2027 to 1 March 2028 would be 366, because 29 February 2028 falls inside it.
How to calculate months and days between dates
Whole months are counted from the start date on the same day number, and the days left over follow. Months have 28 to 31 days, so "1 month and 3 days" is not a fixed number of days. For a fixed length, read the total days figure instead.
| Days | Months |
|---|---|
| 31 | Jan, Mar, May, Jul, Aug, Oct, Dec |
| 30 | Apr, Jun, Sep, Nov |
| 28 or 29 | Feb (29 in leap years) |
What the working-days count does and does not do
Working days are all Monday-to-Friday days in the range. Public holidays are not removed, because they differ by country, state and employer. To adjust, subtract the holidays that fall on weekdays from the working-day total.
Notice periods and deadlines
A 30 day notice starting on 1 March ends on 31 March when the start date is day zero, and on 30 March if the first day counts as day one. Check which way your contract or rule counts, then use the include option to match it.
Leap years in one line
A year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. So 2024 and 2028 are leap years, 1900 was not, and 2000 was.