Date Difference Calculator
Count how many days separate two dates, using real calendar dates so month lengths and leap days are included.
About this calculator
The difference between two dates can be reported as a raw day count or as a years-months-days breakdown. This calculator shows both so you can use the figure that matches the question you are asking.
How to calculate
Enter a start date and an end date. The order can be reversed; the calculator reports a positive duration and notes if the end is earlier.
Days = end date − start date (calendar days)
Y/M/D = calendar difference with month-length adjustments
When to use it
- Project length
- Days until an event
Examples
1 January to 1 February in a common year
That span is 31 days, or 1 month and 0 days.
Examples (check the page for inclusive vs exclusive)
| From | To | Span |
|---|---|---|
| 1 Jan | 31 Jan (non-leap) | 31 calendar days in January |
| 1 Jan | 1 Feb | 31 days later |
| 28 Feb 2024 | 1 Mar 2024 | Leap day in between |
FAQ
Are both dates included?
The day count is the number of midnights between the two dates. 1 January to 2 January is 1 day. Inclusive day count is also shown.
Do time zones matter?
No. Dates are treated as local calendar dates without a time of day.

