Date Difference Calculator
Days between dates
What it does
Years, Months, Days and Totals
See the calendar difference plus total days and weeks, with leftover days shown.
Either Order, Stated Clearly
If the end date is earlier, the result says "X days before" instead of silently swapping the dates.
Immune to Daylight Saving
Dates are calendar days, so a 23-hour or 25-hour day never changes the count.
Leap Years and Month Ends
February in leap years and month-end dates are handled with documented rules.
Frequently asked questions
Are my dates sent anywhere?
No. The calculation runs in your browser. The page does download the code needed to run the tool.
Does it count the end date?
No. It counts the days from the start date to the end date, so the same date twice is 0 days and a date and the next day is 1.
What if the end date is before the start date?
The dates are not swapped for you. The gap is shown as a positive size with the direction written out, for example "The end date is 30 days before the start date."
How are months of different length handled?
Whole months are added to the start date (using the last day of a shorter month when needed), and the remaining days are shown separately.