Days between dates calculator
The calculator works out how many days pass from one date to another. It shows the result in days, in weeks and days, and in years, months and days. The “From” box fills itself in with today’s date, so if you want to know how many days are left until Christmas, your holiday or an exam, you only need to enter the second date.
Dates are entered as month/day/year, so 6 December 2026 is 12/6/2026. The year-first form 2026-12-06 works too. The order of the two dates does not matter: the calculator always counts from the earlier date to the later one.
How it works
The calculator turns each date into a day number, for example counting from 1 January 1970. The number of days between two dates is then just the difference of two numbers, so you do not have to worry about how many days each month has or which year is a leap year.
From 6 December to 24 December it is 24 − 6 = 18 days. This is how a calendar counts too: “Christmas is in 18 days”. The day you start from is not counted, but the last day is.
Count the last day too?
If you want to know how many days a stay or a course lasts, including both the first and the last day, add one day. A school year from 1 September 2026 to 30 June 2027 is 302 days by the plain difference, but if we count 30 June as well, it is 303 days, that is 43 weeks and 2 days. For hotel nights, on the other hand, do not count the last day: from Friday to Sunday is two nights.
Years, months and days
The calculator first counts off whole months from the earlier date and then works out the rest in days. Months are not all the same length, so this cannot be found by simple division.
The school year above comes to 9 months and 29 days (from 1 September to 1 June is 9 months, then 29 days to 30 June). With the last day counted it is exactly 10 months.
If a month does not have the day that is needed, its last day is used. A month from 31 January therefore ends on 28 February. Deadlines given in months are usually counted in the same way.
If you want to do the opposite and add a certain number of days to a date, use the add days to date calculator. Your age in days is worked out by the age calculator, and days can be converted to hours and minutes with the time unit converter.
Chapters: Days between dates calculator, Add days to date calculator, Age calculator, Day of the week calculator, Add time calculator, Time unit converter