Date Difference Calculator

Count the days, weeks and months between two dates.

  • Runs in your browser
  • Free, no sign-up
-Days
-Weeks
-Weekdays
-Weekend days
  • In years, months and days-
  • In months and days-
  • In hours-
  • In minutes-
  • In seconds-

 

About the Date Difference Calculator

The Date Difference Calculator tells you how much time lies between two dates. You get the number of days and weeks, how many of those days are weekdays and weekend days, the gap in years, months and days, and the same span in hours, minutes and seconds.

It answers everyday planning questions: how long a project or a contract runs, how many working days are left before a deadline, how many days a trip or a hotel stay lasts, how long ago something happened, or how many days an invoice is overdue.

The calendar math handles leap years and months of 28 to 31 days. You can count the end day too, add clock times for partial days, and swap the dates with one click. Everything runs in your browser.

How to use it

  1. Pick the two datesChoose a start date and an end date. The tool opens with January 1 of this year and today.
  2. Decide whether the end day countsCheck "Count the end day too" when both the first and the last day should be included, as with a hotel stay counted in days or a vacation.
  3. Add times if you need themCheck "Include times" to set a clock time for each date. Days, hours and minutes then count only complete periods.
  4. Use a shortcutEnd is today, To end of year (from today to December 31) and Start + 100 days fill in the dates for you.
  5. Read and copy the resultRead the totals at the top and the breakdown below, then click Copy result for a one-line summary.

Key features

Days, weeks and weekdays

The number of days, the same span in weeks and days, and how many of those days fall Monday to Friday or on a weekend.

Years, months and days

A calendar breakdown such as "5 months, 19 days", also shown as months and days only.

Hours, minutes and seconds

The span in smaller units, either for whole days or for the exact times you enter.

Leap years and month ends

February 29 is counted in leap years, and a month from January 31 ends on the last day of February.

Order does not matter

If the end date is before the start date, the tool swaps them and says so.

Private by design

Both dates are worked out on your device. There is no account, and nothing is uploaded.

Examples

A whole year

DatesDaysBreakdownWeekdays
Jan 1 to Dec 31, 202636411 months, 30 days260
Same, counting the end day3651 year261
Jan 1, 2024 to Jan 1, 20253661 year262

By default the tool counts from the start date up to the end date, the way you count nights in a hotel. Checking "Count the end day too" adds the last day. 2024 was a leap year, so a full year from January 1, 2024 has 366 days.

Weekdays and weekends

Dates (2026)DaysWeekdaysWeekend days
Mon, Oct 5 to Fri, Oct 9440
Same, counting the end day550
Fri, Oct 9 to Mon, Oct 12312

Weekdays are counted from the start date and stop the day before the end date, unless you count the end day too. A full work week from Monday to Friday is therefore 5 weekdays only with that box checked. Public holidays are not taken into account.

Months of different lengths

DatesDaysBreakdown
Jan 31 to Mar 1, 2026291 month, 1 day
Jan 31 to Feb 29, 2024291 month

February has no 31st, so one month after January 31 is the last day of February: February 28 in 2026, February 29 in the leap year 2024. That is why the same 29 days can be "1 month, 1 day" in one year and exactly "1 month" in another.

Dates with times

From January 1, 2026 at 10:00 AM to January 2 at 9:00 AM is 0 days and 23 h 0 min (1,380 minutes), because a full day has not passed yet. Without times, the same dates count as 1 day.

Hours always count every day as 24 hours, and both times are read on the same clock. From March 7, 2026 at noon to March 9 at noon shows 48 hours. In most of the United States, clocks moved forward one hour on March 8, 2026, so only 47 hours actually passed there. For times in two different time zones, convert one of them first.

A project timeline

From Monday, October 12, 2026 to Wednesday, March 31, 2027: 170 days, 24 w 2 d, 5 months, 19 days and 122 weekdays. Subtract the holidays your team takes off, such as Thanksgiving, Christmas and New Year's Day, to get the real number of working days.

Tips

  • For hotel stays and rentals, leave "Count the end day too" off: the result is the number of nights. For vacations and events counted in days, check it.
  • For working-day deadlines, start with the weekday count and subtract public holidays and planned days off.
  • Use "Start + 100 days" for a 100-day plan or a probation period, then adjust the end date to a weekday if needed.
  • To find out how long ago something happened, put that date first and click "End is today".
  • For someone's exact age, the Age Calculator shows the same breakdown plus the next birthday.

Common mistakes and limits

  • Forgetting whether the end day countsFrom Monday to Friday is 4 days by default and 5 with "Count the end day too". Decide which one your question needs.
  • Treating weekdays as business daysWeekdays are Monday to Friday. Public holidays differ by country and state, so they are not removed.
  • Expecting hours to include daylight saving changesEvery day counts as 24 hours. Across a spring or fall clock change, the real elapsed time is one hour less or more.
  • Comparing month counts across yearsMonths have different lengths, so "1 month" can be 28, 29, 30 or 31 days. Use the day count when precision matters.
  • Entering times from different time zonesBoth times are read on the same clock. Convert one of them to the other's time zone before you enter it.

Frequently asked questions

How many days are there between two dates?
Enter both dates and read the Days number. It counts from the start date up to the end date. Check "Count the end day too" to include both the first and the last day.
Does the calculator include leap years?
Yes. February 29 is counted in every leap year, so a full year can be 365 or 366 days depending on the dates.
How are weekdays counted?
Every Monday to Friday from the start date up to the day before the end date, or up to and including the end date when that box is checked. Weekend days are the Saturdays and Sundays in the same range.
Are public holidays excluded?
No. Holidays differ by country, state and employer, so subtract the ones that apply to you from the weekday count.
How are months counted?
Whole months are counted from the start date, then the remaining days. If the start day does not exist in a month, like January 31 in February, the last day of that month is used.
What happens when I include times?
The days, hours, minutes and seconds count only complete periods. If the end time is earlier in the day than the start time, the last day is not complete yet and is not counted.
Does it handle time zones and daylight saving time?
It treats both dates as being on the same clock and every day as 24 hours. It does not convert between time zones or adjust for clock changes.
Is anything I enter saved?
No. The calculation happens in your browser, and nothing is stored or sent.