CalcOpenly
English

Days between dates calculator

Days between two dates, also as years, months and days, weeks and hours, plus business days after weekends and your own holidays.

Drafted with AI writing toolsUpdated Checked examples: 6

= 2026-11-12
= 2027-02-10
Counts the last day too, so 1 to 3 March is 3 days instead of 2.
More options
One ISO date per line, optionally followed by a name.
Try
Total days
days
Total days: 90 days
Whole number; Nearest, ties away from zero
Years, months and days
0 years, 2 months, 29 days
Whole years
0
Months after whole years
2
Days after whole months
29
Whole weeks
12
Days after whole weeks
6
Hours
2,160h
Business days
64
Weekend days
26

From Thu 12 Nov 2026 to Wed 10 Feb 2027 is 90 days: 0 years, 2 months, 29 days, or 12 weeks and 6 days. Of those, 64 days are business days.

The span

90 days: 12 Nov 2026 to 10 Feb 202790 daysStart: Thu 12 Nov 2026StartThu 12 Nov 2026End: Wed 10 Feb 2027EndWed 10 Feb 2027

Kinds of day

64business days
Business days71.1%Weekend days28.9%
How it's calculated S
  1. Count days with day numbers

    N(end)−N(start)=20859−(20769)=90N(\text{end}) - N(\text{start}) = 20859 - (20769) = 90

    N counts days from 1 January 1970 in the proleptic Gregorian calendar.

  2. Whole months, then days

    2 whole months from Thu 12 Nov 2026 reach Tue 12 Jan 2027; 29 days more reach Wed 10 Feb 2027.

    Months are counted from the start date's day of the month. When that day doesn't exist in a month (the 31st in April, the 29th–31st in February), the month's last day is used.

  3. Weeks and hours

    90=7×12+6,90×24=2160 h90 = 7 \times 12 + 6,\qquad 90 \times 24 = 2160\ \text{h}
  4. Business days

    90−26 weekend−0 holidays=6490 - 26\ \text{weekend} - 0\ \text{holidays} = 64

    Weekend: Saturday and Sunday. Holidays that fall on a weekend are not subtracted twice.

About the days between dates calculator

Each date is turned into a day number, the count of days since 1 January 1970 in the Gregorian calendar, and the difference of the two numbers is the number of days between them. The years, months and days figure steps whole months forward from the start date; when that day of the month doesn't exist, the month's last day is used. Business days are the total minus weekend days minus any listed holidays that fall on working days.

People use it for notice periods, visa and residence stays, project schedules and interest periods. From 31 January to 1 March 2024 is 30 days, which reads as 1 month and 1 day because one month after 31 January is 29 February in a leap year.

The end date is left out by default, the same convention as subtracting dates in a spreadsheet. Switch on "Include the end date" when both the first and last days count: leave from Monday to Friday is 5 days, not 4.

How to calculate days between dates

The days between two dates are the later date minus the earlier one. That count includes the start date and leaves out the end date, as spreadsheet subtraction does: 3 March to 10 March 2026 is 7 days. When both the first and last day count, as for leave from one date to another, add 1 for 8 days.

Start dateEnd dateDefault day countCounting both dates
2026-03-032026-03-1078
2026-03-032026-03-0301
2024-02-282024-03-0123
2026-12-312027-01-0112

Leap days need no special step: 28 February to 1 March 2024 is 2 days because 29 February falls between them.

The same span also splits into weeks or calendar months: 14 March to 9 August 2026 is 148 days, which is 21 weeks and 1 day, or 4 months and 26 days.

Which date calculation do you need?

  • Days since or until a date: subtract as above, with today as the other date.
  • The date a number of days away, such as 90 days from today: use add or subtract days.
  • A deadline in working days: use the working days deadline calculator with your weekend and holidays.
  • Age from a date of birth: use the age calculator, which counts completed years.

How to count the days between two dates by hand

Split the span at month boundaries: count the days left in the start month, add the whole months in between, then add the days into the end month. From 14 March to 9 August 2026:

  1. Days left in March after the 14th: 31 − 14 = 17.
  2. Whole months between: April 30 + May 31 + June 30 + July 31 = 122.
  3. Days into August: 9.

The total is 17 + 122 + 9 = 148 days. This counts 15 March through 9 August, where subtraction counts 14 March through 8 August; each leaves out one end, so the totals match.

Across a new year, use day-of-year numbers. 20 November is day 324 of 2025, leaving 365 − 324 = 41 days of that year, and 6 February is day 37 of 2026, so 20 November 2025 to 6 February 2026 is 41 + 37 = 78 days.

Day-of-year table

Find each date's day of the year and subtract. The leap-year columns apply to every year divisible by 4, except century years not divisible by 400, such as 2100.

MonthDays1st is day (common year)Last day is day (common year)1st is day (leap year)Last day is day (leap year)
January31131131
February28 (29)32593260
March3160906191
April309112092121
May31121151122152
June30152181153182
July31182212183213
August31213243214244
September30244273245274
October31274304275305
November30305334306335
December31335365336366

For 14 March to 9 August 2026: 9 August is day 213 + 8 = 221, 14 March is day 60 + 13 = 73, and 221 − 73 = 148. The week number and day of the year calculator gives any date's day number directly.

Inclusive, exclusive and clear days

Take 3 to 10 March 2026, Tuesday to Tuesday. Subtracting the dates gives 7. Counting both ends gives 8. Counting neither end gives 6, which is what "clear days" means. Laws and contracts pick one of these, and the wrong one moves a deadline by a day.

ConventionStart dateEnd date3 to 10 March 2026Where it is used
Subtraction (calculator default)CountedLeft out7 daysSpreadsheet date subtraction; hotel nights
InclusiveCountedCounted8 daysLeave booked from one date to another; rota counts
Clear daysLeft outLeft out6 daysNotice periods for UK company meetings
US federal court deadlinesLeft outCounted7 daysFiling periods in days

UK company law uses clear days. Under the Companies Act 2006, s.360, neither the day notice is given nor the meeting day counts, and s.307 requires at least 14 days' notice of a private company's general meeting.

Notice given on 1 June 2026 therefore allows a meeting on 16 June at the earliest, unless members agree to shorter notice. Subtraction gives 15 days; leaving out 1 June itself leaves 14 clear days.

US federal courts follow Federal Rule of Civil Procedure 6(a): leave out the trigger day, count every day including weekends and holidays, and include the last day. If that day is a Saturday, Sunday or legal holiday, the period runs on to the next day that is not.

A 10-day period triggered on Wednesday 4 March 2026 lands on Saturday 14 March, so it ends on Monday 16 March. To find an end date from a start date and a number of days, use the add or subtract days calculator.

How business days are counted

Business days are the total days minus weekend days minus listed holidays that fall on working days. The end-date rule matters here too: April 2026 has 22 weekdays, but counting 1 April to 30 April by subtraction drops Thursday 30 April and gives 21.

England and Wales have two Easter bank holidays in April 2026, Good Friday on 3 April and Easter Monday on 6 April (gov.uk bank holidays). Counting both ends and leaving those out, the month has 20 working days.

Excel's NETWORKDAYS counts both ends: Microsoft's example returns 110 working days from 1 October 2012 to 1 March 2013, while subtraction gives 109 because Friday 1 March 2013 is left out. NumPy's busday_count also leaves out the end date.

A holiday on a weekend is not taken off twice. In England and Wales, 26 December 2026 is a Saturday and the Boxing Day bank holiday moves to Monday 28 December.

From 24 December 2026 to 4 January 2027, listing 25, 26 and 28 December and 1 January removes 3 days, not 4, and leaves 4 business days.

Use the holiday list for the right region: Scotland's 2026 bank holidays include 2 January, 15 June and 30 November but not Easter Monday. To find the date a number of working days after a start date, use the working days deadline calculator.

Why months and years are not fixed lengths

A month is 28 to 31 days long, so a months-and-days figure depends on where the span starts. Months are counted forward from the start date's day of the month; when that day doesn't exist, the month's last day stands in:

  • 1 February to 1 March 2026 is 28 days, exactly 1 month.
  • 30 January to 1 March 2026 is 30 days, or 1 month and 1 day, because one month after 30 January is 28 February.
  • 28 February to 31 March 2026 is 31 days, or 1 month and 3 days.
  • 31 March to 30 April 2026 is 30 days, exactly 1 month, because April has no 31st.

When a contract, loan or statute sets a period in days, use the day count; when it sets months, use the months figure and check the month-end case. The age calculator counts months from the day of birth the same way.

Counting the end date changes the breakdown as well: 1 January to 31 December 2026 is 364 days, or 11 months and 30 days, by subtraction, but 365 days and exactly 1 year when both dates count.

Mistakes that change the count

  • Day and month order. 03/04/2026 is read day first, as 3 April, the order used in the UK and most of the world; a US reader means 4 March. ISO dates such as 2026-04-03 avoid the ambiguity.
  • Hours across a clock change. Days × 24 gives calendar hours. Where clocks change, the time between two local midnights can be an hour shorter or longer.
  • Dates before the Gregorian calendar. Every date is treated as Gregorian, even before a country adopted it. Britain switched in 1752 under the Calendar (New Style) Act 1750, so 14 September followed 2 September 1752: 12 days apart on paper, 1 day in real life. Convert historical dates first with the calendar converter.

Date formats and settings

  • Dates can be ISO (2026-03-03), written out (3 March 2026 or March 3 2026), or today.
  • Weekends can be Saturday and Sunday, Friday and Saturday, or Sunday only. Holidays go one ISO date per line, optionally followed by a name, such as 2026-04-03 Good Friday; none are preloaded.
  • Including the end date adds the last day to every figure, business days and the months breakdown included.
  • An end date before the start gives a negative total; the other figures describe the span between the two dates.

Worked examples

Month-end start in a leap year

Start date
2024-01-31
End date
2024-03-01
Weekend
Sat–Sun
Total days
30 days
Whole years
0
Months after whole years
1
Days after whole months
1
Whole weeks
4
Days after whole weeks
2
Hours
720 h
Business days
22

Checked against: Independent calculation

Leap day to leap day

Start date
2023-02-28
End date
2024-02-29
Weekend
Sat–Sun
Total days
366 days
Whole years
1
Months after whole years
0
Days after whole months
1
Hours
8,784 h
Business days
262

Checked against: Difference = 366 days

Whole year counting the end date

Start date
2026-01-01
End date
2026-12-31
Include the end date
yes
Weekend
Sat–Sun
Total days
365 days
Years, months and days
1 year, 0 months, 0 days
Business days
261

Checked against: Independent calculation

Friday–Saturday weekend

Start date
2026-01-15
End date
2026-02-15
Weekend
Fri–Sat
Total days
31 days
Business days
21
Weekend days
10

Checked against: Independent calculation

Questions

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

Subtract the earlier date from the later one using day numbers, which is what a spreadsheet does with =B1-A1. From 1 January to 31 December 2026 that gives 364 days; add 1 if the last day should count as well, giving 365. Counting on a calendar by months goes wrong at month ends and leap years, which day numbers handle automatically.

Does the day count include the start date and the end date?

It includes the start date and leaves out the end date, so 1 to 3 March is 2 days, matching Excel date subtraction and Python's date arithmetic. Turn on "Include the end date" to count both, which makes 1 to 3 March 3 days. Contracts and statutes sometimes define their own rule, so check the wording when a deadline has legal effect.

How many working days are there in 2026?

2026 has 261 weekdays, Monday to Friday. England and Wales have 8 bank holidays in 2026, all on weekdays (gov.uk lists Boxing Day as Monday 28 December), which leaves 253 working days. For another country, paste its public holidays into the holidays box, one ISO date per line, and they are taken off the business-day count.

How are months counted between two dates?

Months are counted from the start date's day of the month, and a day that doesn't exist in the target month becomes that month's last day. So 31 January plus one month is 29 February 2024, and 31 January to 1 March 2024 is 1 month and 1 day. Microsoft notes that Excel's DATEDIF with the "MD" unit may return a negative number, a zero or an inaccurate result, which this method avoids.

How many weeks are between two dates?

Divide the number of days by 7: the whole number is the weeks and the remainder is the extra days. 90 days is 12 weeks and 6 days, and a leap year's 366 days is 52 weeks and 2 days. Pregnancy is dated in the same weeks-plus-days form, written 12+6.

About this calculator

days=N(end)−N(start),N=days since 1970-01-01\text{days} = N(\text{end}) - N(\text{start}),\qquad N = \text{days since 1970-01-01}

Sources

  1. ISO 8601-1:2019 — Date and time, representations for information interchange
  2. Howard Hinnant — chrono-compatible low-level date algorithms (days_from_civil)
  3. NumPy busday_count (business-day counting convention: end date excluded)

Checked against references

This calculator includes 6 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.

Put this calculator on your site

Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.

Height
Preview the embed

Keep the credit line. It is the only condition, and it is what keeps these calculators free.