Days Between Two Dates Calculator

Opens straight on the count between two dates, gives the answer in total days, weeks, months and weekdays at once, lets you count the end date or not, and shows the working with the matching Excel, SQL and Python formulas.

In short

Subtract the earlier date from the later. From October 20, 2026 to December 25, 2026 there are 66 days, which is 9 weeks and 3 days, or 2 months and 5 days, with the end date left out. Count both dates and it is 67.

  • Days and weeks
  • End date in or out
  • Weekdays
  • Excel formula
  • Runs in your browser

Private by design. Nothing you type is uploaded or saved. Add this tool to your phone or computer for one-tap access.

Use the Days between two dates calculator

The date fields use your browser’s own order. This only changes how results are written.

Add this tool to your phone or computer like an app, one tap to open. It opens in its own window and still loads when you are offline.

Page last updated

How to use the days between two dates

  1. Enter the start date and the end date. They show in your browser’s own date order.
  2. Choose whether to count the end date as well. Leave it off for “how many days until”, turn it on for a stay or a leave request.
  3. Read the answer in total days, weeks and days, months and days, and weekdays.
  4. Open Show the working to see each step and the spreadsheet formulas for your two dates, then copy the result.

How many days are between two dates?

Dates are plain calendar dates with no time zone, counted on the Gregorian calendar. Every date becomes a day number, and the days between two dates is the later day number minus the earlier one, so month lengths and leap years are handled exactly. By default the end date is left out; tick the box to count it too. Weeks are the days divided by seven, with the remainder shown as days. Whole months are added to the earlier date, with a month end moved back to the last day of a shorter month, and the days left over are counted from there. Weekdays are the Monday to Friday dates from the first date to the last, both included, with no holidays taken out.

For example, from Tuesday, October 20, 2026 to Friday, December 25, 2026 is 66 days with the end date left out, or 67 if both dates count. That is 9 weeks and 3 days, or 2 months, 5 days. The dates are made up; yours come from what you enter.

Who should use the days between two dates

  • Anyone counting the days between two dates for a deadline, a notice period, a trip or a project
  • Students and teachers checking date arithmetic by hand
  • Spreadsheet and database users who want to check a date formula

Who should not use this

  • Anyone who needs a legally binding count; how days are counted depends on the contract, court or authority, so confirm with it
  • Anyone who needs public holidays taken out; use the working days calculator
  • Anyone who needs time zones or daylight saving; this counts calendar dates only

Limitations

  • Dates run from year 1 to year 9999 on the Gregorian calendar, which is applied to the past as well.
  • There are no time zones. Times of day are taken as written, so a period that crosses a daylight saving change is counted as if every day had 24 hours.
  • Weekdays means Monday to Friday. Holidays are not taken out.
  • Different tools count months and days differently when a month end is involved. Total days is the figure that is the same everywhere.
  • Nothing is uploaded or stored on a server. Clearing your browser data also removes the saved profile.

How do you calculate days between dates by hand?

Give every date a day number and subtract the earlier from the later. That one subtraction already handles the different month lengths and leap years. From October 20, 2026 to December 25, 2026 the answer is 66 days: 11 days to finish October, 30 for November and 25 for December.

66 daysOctober 20, 2026 to December 25, 2026
9 weeks 3 daysthe same gap in weeks
2 months, 5 daysthe same gap in months and days

The order does not matter. If you enter the later date first, the calculator still gives the positive number of days and tells you the dates were swapped.

Number of days between two dates: common gaps worked out

These gaps are counted the default way, with the end date left out. Weekdays are the Monday to Friday dates from the first date to the last, both included. Public holidays are not taken out.

Days between two dates, with the same gap in weeks, months and weekdays
BetweenDaysIn weeksIn months and daysWeekdays
Start to end of 202636452 weeks11 months, 30 days261
One full year, 2026 to 202736552 weeks 1 day1 year262
One full leap year, 2028 to 202936652 weeks 2 days1 year261
January 1 to March 1, 2026598 weeks 3 days2 months42
January 1 to March 1, 2028 (leap year)608 weeks 4 days2 months43
November 17 to Christmas Day 2026385 weeks 3 days1 month, 8 days29
November 17, 2026 to New Year’s Day 2027456 weeks 3 days1 month, 15 days34
Memorial Day to Labor Day 202610515 weeks3 months, 13 days76
Working days calculatorNeed the days between two dates without weekends and public holidays? Use the working days calculator.Days until a date calculatorCounting from today to a date, a birthday or a holiday? Use the days until a date calculator.

Should the end date be counted?

The usual answer to “how many days between” leaves the end date out, so October 20, 2026 to October 21, 2026 is 1 day. A hotel stay, a leave request or a course that runs on both the first and last date counts both, which adds one: October 20, 2026 to December 25, 2026 becomes 67 days. Tick “Count the end date as well” in the calculator for that version.

Elapsed days

End date left out

66 days for October 20, 2026 to December 25, 2026.

  • Use it for “how long until” and “how long since”
  • This is what a spreadsheet subtraction gives
Both days count

End date included

67 days for the same two dates.

  • Use it for stays, leave, and day-by-day schedules
  • Check how a form or contract counts before you rely on it

How are the months and days in the gap worked out?

Whole months are added to the earlier date for as long as they do not pass the later one, and the days left over are counted from there. From October 20, 2026 to December 25, 2026 that is 2 months, 5 days. Months are not all the same length, so the answer depends on where the gap sits: January 31 to March 1, 2026 is 29 days, while February 1 to March 1 is 28 days in 2026 and 29 in the leap year 2028.

To compare gaps fairly, use total days. Months-and-days is the form people say aloud, but it is not a fixed length.

How do leap years change the number of days?

A year has 366 days when it divides by 4, except century years that do not divide by 400. So 2024 is a leap year, 2028 is a leap year, 2100 is not a leap year, 2000 is a leap year. Any gap that crosses February 29 is one day longer than the same gap in an ordinary year, which is why a full year can be 365 or 366 days and a calculator that ignores leap years drifts by a day every four years.

How do you find the number of days between two dates in Excel, Google Sheets, SQL and Python?

Put the dates in two cells, here A1 for October 20, 2026 and B1 for December 25, 2026, and every tool below returns 66.

The same count in common tools
ToolFormulaWhat it counts
Excel and Google Sheets=B1-A1Elapsed days, end date left out
Excel and Google Sheets=DATEDIF(A1,B1,"d")The same count, written as a function
Excel and Google Sheets=NETWORKDAYS(A1,B1)Weekdays, both ends included
SQL (PostgreSQL)DATE '2026-12-25' - DATE '2026-10-20'Elapsed days
Python(date(2026, 12, 25) - date(2026, 10, 20)).daysElapsed days
Date calculatorWant to add days, weeks or months to a date instead? Use the date calculator.

Sources and review

Reviewed on 17 Nov 2026 against the published sources below. Rules and prices change, so check the current position before you rely on a figure.

Common questions

How many days are there between two dates?

Subtract the earlier date from the later. From October 20, 2026 to December 25, 2026 is 66 days: 11 days to finish October, 30 for November and 25 for December. Tick “Count the end date as well” if both the first and last day should count, which makes it 67.

How do I calculate the number of days between two dates?

Enter both dates in the calculator and read the total days. By hand, add up the days left in the first month, the whole months in between and the days into the last month, remembering that February has 29 days in a leap year.

What is a day counter between dates?

It is a tool that counts the days from one date to another. This calculator does that and also gives the weeks, the months and days, and the weekdays, so you do not need a second tool.

Does the count include the start and end dates?

By default the end date is left out, so today to tomorrow is 1 day. That is how a spreadsheet subtraction works. Tick the box to count the end date as well, which adds one day and suits stays, leave and schedules where both dates count.

How many weekdays are between two dates?

The calculator shows the Monday to Friday dates from the first date to the last, both included. Public holidays are not taken out; for those use the working days calculator.

How do I find the days between two dates in Excel or Google Sheets?

Put the dates in A1 and B1 and type =B1-A1, or =DATEDIF(A1,B1,"d"). Both return the elapsed days. =NETWORKDAYS(A1,B1) returns the weekdays instead.

Does it handle leap years?

Yes. A year is a leap year if it divides by 4, except century years that do not divide by 400, so 2024 and 2000 were leap years and 1900 and 2100 are not. A gap that crosses February 29 is one day longer.

Why is the answer in months and days not the same in every tool?

Months have different lengths, so tools differ on where a month end falls. This calculator adds whole months to the earlier date, moves a month end back to the last day of a shorter month, then counts the leftover days. Total days is the figure to compare.

Guides that explain the rules

Related tools

Results are estimates, not legal, tax, payroll or financial advice. They follow the rules and rates named under Sources, leave out anything the page does not mention (such as other income, credits, local rules or your employer’s own policy), and can differ from a payroll run, a tax return or an agency’s decision. See the disclaimer. Found a mistake? Report an error in a calculation.