Days Between Dates Calculator

Calculate the exact number of days, weeks, and months between any two dates.

1
2

About this tool

How do I calculate the number of days between two dates?
Subtract the earlier date from the later date. Each calendar day counts as one unit. For example, from 1 January to 31 January is 30 days (not 31), because you count the gaps between days, not the days themselves. This calculator does that arithmetic instantly.
Does the calculator include both the start date and the end date?
The calculator counts the number of full days elapsed between the two dates. The start date is day zero, so if you enter 1 Jan and 3 Jan the result is 2 days. If you need to include both endpoints (i.e. count both the first and last day), simply add 1 to the displayed total.
How are weeks and months calculated?
Weeks are calculated by dividing the total days by 7 and showing the whole weeks plus the remaining days. Months are an approximation based on dividing total days by 30.4375 (the average calendar month length), rounded to one decimal place. For precise legal or contractual purposes, always verify with exact calendar months.
Can I calculate dates across different years or centuries?
Yes. The calculator handles any two dates that your browser's date input supports, including leap years. It correctly accounts for the extra day in February during a leap year, so the result is always accurate to the day.
What if I enter the end date before the start date?
The calculator always works out the absolute difference between the two dates, so the order you enter them does not matter. It will also tell you which of the two dates comes earlier in the result.