Days between two dates

58 days

From today, Tuesday, November 3, 2026, to December 31

The same span in other units

Weeks and days
Years, months, days
Months and days
Business days
Weekend days
Holidays on working days
Hours (24 per day)
Minutes
Seconds

How to count the days between two dates

Every date on the calendar has a position in one long unbroken count of days. Take the position of the later date, subtract the position of the earlier one, and the result is the number of days between them. Months, leap years and year boundaries stop mattering, because the count already includes them. That is how this calculator works, and it is how spreadsheets and databases work too: they store a date as a day number and subtract.

If you do it by hand, count the days left in the first month, add the full months in between, then add the day number of the final date. From March 15 to June 15: 16 days left in March, 30 in April, 31 in May, 15 in June, which makes 92. Three months starting on December 15 are only 90 days, and from January 15 to April 15 is 90, or 91 in a leap year.

Inclusive or exclusive: the one-day question

Most disagreements about a day count come down to whether the first day counts. Think of a fence: ten metres of fence with a post every metre needs eleven posts, not ten. Dates behave the same way. Between Monday and Friday there are four intervals but five dates.

Use the default, which leaves out the start date, when you are measuring elapsed time: how long ago something happened, how old something is, how far off an event is. Tick “Count both dates” when each date is a unit you use up: days of annual leave, days of a course, or days of a conference. A trip from July 10 through July 20 occupies 11 calendar dates but only 10 nights.

Contracts and legal rules usually say which they mean, and you should follow the wording rather than a calculator’s default. The United States federal court rules are a clear example: Rule 6 of the Federal Rules of Civil Procedure excludes the day of the triggering event, counts every day after it including weekends and holidays, and then carries a last day that lands on a weekend or legal holiday over to the next working day. Other courts and countries use other rules, so treat this as an illustration and not legal advice. Business days calculator covers working-day periods.

Weeks, months and years are not all the same kind of unit

Days and weeks are fixed lengths, so converting between them is plain division. Months and years are not. A month has 28 to 31 days and a year has 365 or 366, so “how many months” has to be counted along the calendar instead of divided. This tool uses the rule most software uses: step forward whole months from the start date, and if the target month is too short, stop at its last day. Then count the days that remain.

That rule has a consequence that surprises people. From January 31 to March 1, 2027 is 1 month and 1 day, because one month after January 31 is February 28, and March 1 is one day later. In 2028, a leap year, the same dates give 1 month and 1 day as well, but the span holds one more day: 30 instead of 29. Two spans with the same month count can differ by up to three days, which is why invoices, rent and interest calculations state their own day-count convention.

Dividing days by 30 or by 30.44 gives a figure that sounds precise and is only an average. Use it for a rough sense of size, not for a date you need to meet.

Worked examples

FromToDaysBoth dates countedWeeksYears, months, daysWeekdays
Friday, January 1, 2027Friday, December 31, 202736436552 weeks11 months and 30 days260
Sunday, January 31, 2027Monday, March 1, 202729304 weeks and 1 day1 month and 1 day21
Monday, January 31, 2028Wednesday, March 1, 202830314 weeks and 2 days1 month and 1 day22
Monday, March 15, 2027Tuesday, June 15, 2027929313 weeks and 1 day3 months66
Tuesday, February 1, 2028Wednesday, March 1, 202829304 weeks and 1 day1 month21
Saturday, January 1, 2000Tuesday, January 1, 203010,95810,9591,565 weeks and 3 days30 years7,827

The first row is a useful check on any tool: January 1 to December 31 of a common year is 364 days, not 365, unless you count both dates. The whole of 2027, counted inclusively, has 261 weekdays before any public holidays are removed.

Leap years in a day count

A leap day adds one to any span that contains February 29. Under the Gregorian rule, a year divisible by 4 is a leap year, except century years not divisible by 400. So 2000 was a leap year, 2100 will not be, and there are 97 leap days in every 400 years. The result lists the leap day when your span contains one. Leap years go into more detail.

A span that merely touches a leap year may not include the leap day. January 1 to February 28, 2028 has no leap day in it, and March 1 to December 31, 2028 has none either. It matters only whether February 29 falls after the start date and on or before the end date.

Dates long ago

For old dates, a day count has a catch: the calendar itself changed. In the Catholic changeover of 1582, Thursday October 4 was followed directly by Friday October 15, dropping ten dates. Britain and its colonies followed in 1752, when September 2 was followed by September 14. Other countries switched later still, some in the twentieth century. This tool uses the Gregorian calendar throughout, extended backwards, as most software does (ISO 8601 allows this by agreement between the parties). A date copied from a record written in the old calendar should be converted first, or the count will be off by ten days or more.

Doing it in a spreadsheet or in code

Calendar days, business days and what the result does not know

The figure for weekdays removes Saturdays and Sundays, or whichever weekend you choose, and then the public holidays of the set you pick. National holiday sets come from official lists for 2026 to 2028. Outside those years the tool skips weekends only and says so. Regional holidays, bank closures and company shutdowns are not included. If a deadline depends on them, check the exact days with whoever set it.

For a date a set distance from another, use the date calculator. For a live count to an event, use days until a date. To see what any single date looks like, weekday and week number included, use date facts.

Questions

How many days are there between two dates?
Subtract the earlier date from the later one, counted in whole calendar days. From March 1 to March 31 is 30 days, because the start date is day zero. If both dates count, as they do when you book March 1 through March 31, the answer is 31.
Does the day count include the start date and the end date?
By default this calculator leaves out the start date and includes the end date, which matches how age, elapsed time and spreadsheet subtraction work. Tick “Count both dates” to add the one extra day. The difference is always exactly one day, however long the span.
How many weeks are between two dates?
Divide the days by seven. The whole number is the weeks and the remainder is the days: 100 days is 14 weeks and 2 days. A span is a whole number of weeks only when both dates fall on the same weekday.
How many months are between two dates?
Count how many times the start day number can be stepped forward a month without passing the end date, then count the days left over. Months differ in length, so “months” has no fixed number of days, and 30 days can be a little under or a little over one month depending on the dates.
Why does my spreadsheet show a different number?
Subtracting cells gives the same result as this calculator’s default. NETWORKDAYS counts both end dates, so it can read one higher than our business-day figure when the start date is a working day. DATEDIF with the “MD” unit is flagged by Microsoft as unreliable.
How do I count the days since a date?
Put that date in the first box and press Today on the second. The start date is day zero, so something that happened yesterday was 1 day ago.
Do time zones or daylight saving change the number of days?
Not when you count calendar dates, which is what this tool does. They matter only if you divide a number of hours by 24, because a day with a clock change has 23 or 25 hours in that zone.
Can I count business days instead?
Yes. The result lists weekdays automatically, and you can choose a holiday set and a different weekend. For deadlines counted in working days, the business days calculator also works forward from a date.

Related calculators