A date difference calculator counts the time between two calendar dates. It gives the total number of days and the same span broken into whole years, months and days. Month lengths and leap years are taken into account, and you can choose whether the end date itself is counted.
How to use the Date Difference Calculator
- Choose the start dateIt is set to today. Pick any other date if you need to.
- Choose the end dateSelect the second date. If it is earlier than the start, the two are swapped for you.
- Decide about the end dateTick the box to count both the first and the last day, which is common for bookings, leave and project durations.
- Read the resultsYou get years, months and days, total days, weeks, weekdays, weekend days, hours, minutes and seconds.
How the days between two dates are counted
The date difference calculator measures the span in two ways.
Total days is the plain count of calendar days from the start date to the end date. From 1 January 2024 to 31 December 2024 is 365 days, because 2024 is a leap year with 366 days and the end date is not counted by default.
Years, months and days is a calendar count: whole years first, then whole months, then the days left over. The same span is 11 months and 30 days. Tick "Include the end date" and it becomes exactly 1 year (366 days).
One month means reaching the same day number in the next month. If that day does not exist, the last day of the month is used, so one month after 31 January is 28 or 29 February.
Include the end date or not?
This is the most common source of off-by-one errors, so it helps to decide what you are counting:
- Nights, ages and deadlines usually exclude the end date. Checking in on the 10th and out on the 13th is 3 nights.
- Leave, rentals and event lengths usually include it. Holiday from the 10th to the 13th covers 4 days.
The weekday and weekend rows split the days into Monday to Friday and Saturday to Sunday. Public holidays are not removed. For custom weekends or to subtract holidays, use the working days calculator.
The hours, minutes and seconds rows multiply the day count by 24, 1,440 and 86,400. They treat every day as exactly 24 hours and ignore daylight saving changes, which shift a real day by an hour twice a year in some regions.
All dates use the Gregorian calendar. A year is a leap year if it is divisible by 4, except century years not divisible by 400. To go the other way and find the date a number of days from a starting point, use the add days to date calculator.
Frequently asked questions
How do I calculate the number of days between two dates?
Enter the start and end dates in the date difference calculator. It counts every calendar day between them, allowing for month lengths and leap years, and shows the total.
Does the count include the end date?
Not by default: 1 March to 2 March is one day. Tick "Include the end date" to count both days, which gives two.
How are months counted when they have different lengths?
A month is counted each time the same day number is reached in a later month. Any days beyond the last whole month are shown separately.
Does it account for leap years?
Yes. Every 29 February that falls within the range is counted as a day.
Can I count only working days?
The weekday row counts Monday to Friday. To choose different weekend days or subtract public holidays, use the working days calculator.
Last updated 24 November 2026 by the TheTechFolk team.