Date Range Overlap screenshot

Date Range Overlap

Do two date ranges overlap, and by how many days, with the shared span named.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
States its rule
Nothing uploaded

What this Date Range Overlap calculator does

Do two date ranges overlap, and by how many days, with the shared span named.

Both ranges include their start and end dates. The overlap is the number of calendar days in the intersection, counted inclusively, so two ranges that share only one day overlap by one day. Ranges that merely touch end-to-start share that single day; ranges separated by a day do not overlap at all. The Gregorian leap rule is read rather than assumed - February has 29 days when the year is divisible by 4 and not by 100, or when it is divisible by 400 - so a leap year moves no count here by hand.

How to use it

Enter First range starts, First range ends, Second range starts, Second range ends, then press Calculate. The page recalculates as you type and runs the same operation again from the values on screen.

Worked example

Input:

First range starts = 2026-01-10
First range ends = 2026-02-05
Second range starts = 2026-02-01
Second range ends = 2026-03-01

Output:

Overlap = Yes
Overlapping days = 5
Overlap starts = 2026-02-01
Overlap ends = 2026-02-05

Why it runs in your browser

Every date is read as a civil date in this browser's local time zone: the page carries no time-zone database and no locale data, and nothing you type is sent anywhere.

Date Range Overlap: Do two date ranges overlap, and by how many days, with the shared span named.

Both ranges include their start and end dates. The overlap is the number of calendar days in the intersection, counted inclusively, so two ranges that share only one day overlap by one day. Ranges that merely touch end-to-start share that single day; ranges separated by a day do not overlap at all. The Gregorian leap rule is read rather than assumed - February has 29 days when the year is divisible by 4 and not by 100, or when it is divisible by 400 - so a leap year moves no count here by hand.

Worked example: First range starts = 2026-01-10, First range ends = 2026-02-05, Second range starts = 2026-02-01, Second range ends = 2026-03-01 gives Overlap = Yes; Overlapping days = 5; Overlap starts = 2026-02-01; Overlap ends = 2026-02-05.

How to use the Date Range Overlap calculator

Enter First range starts, First range ends, Second range starts, Second range ends, then press Calculate. The page recalculates as you type and runs the same operation again from the values on screen.

Every date is read as a civil date in this browser's local time zone: the page carries no time-zone database and no locale data, and nothing you type is sent anywhere.

  • First range starts — a date written YYYY-MM-DD
  • First range ends — a date written YYYY-MM-DD
  • Second range starts — a date written YYYY-MM-DD
  • Second range ends — a date written YYYY-MM-DD

The rule this page applies

Both ranges include their start and end dates. The overlap is the number of calendar days in the intersection, counted inclusively, so two ranges that share only one day overlap by one day. Ranges that merely touch end-to-start share that single day; ranges separated by a day do not overlap at all. The Gregorian leap rule is read rather than assumed - February has 29 days when the year is divisible by 4 and not by 100, or when it is divisible by 400 - so a leap year moves no count here by hand.

A year is a leap year when it is divisible by 4, except a century, which is a leap year only when divisible by 400. February therefore has 29 days in 2028 and 28 in 2026, and the page reads the real month length rather than a table.

  • Overlap = Yes
  • Overlapping days = 5
  • Overlap starts = 2026-02-01
  • Overlap ends = 2026-02-05

What to Expect

Best for

  • Checking a date by hand
  • Getting the overlap quickly
  • Comparing two candidate dates

Not ideal for

  • Statutory holiday calendars
  • Time-zone conversion
  • Locales other than English

What this tool keeps

  • Your inputs in this tab
  • The rule, printed in full
  • The same answer on every run

What may need cleanup

  • A date the page refuses, which names the reason instead of guessing
  • A count outside the supported range, which is refused by name

Common errors

  • A date that does not exist, such as 30 February, is refused rather than rolled forward
  • A blank field is refused rather than read as today
  • A written date in an order the page does not accept is refused by name

Example use cases

  • Planning around a deadline
  • Checking a date before you commit to it
  • Homework and exam checking

Sample input

First range starts = 2026-01-10, First range ends = 2026-02-05, Second range starts = 2026-02-01, Second range ends = 2026-03-01

Sample output

Overlap = Yes; Overlapping days = 5; Overlap starts = 2026-02-01; Overlap ends = 2026-02-05

Who this is for

  • Anyone checking a date by hand
  • Students and teachers

Frequently asked questions

What does the Date Range Overlap calculator do?

Do two date ranges overlap, and by how many days, with the shared span named. The page prints overlap, overlapping days, overlap starts, overlap ends.

How does this page count days?

Both ranges include their start and end dates. The overlap is the number of calendar days in the intersection, counted inclusively, so two ranges that share only one day overlap by one day. Ranges that merely touch end-to-start share that single day; ranges separated by a day do not overlap at all. The Gregorian leap rule is read rather than assumed - February has 29 days when the year is divisible by 4 and not by 100, or when it is divisible by 400 - so a leap year moves no count here by hand.

How are leap years handled?

A year is a leap year when it is divisible by 4, except a century, which is a leap year only when divisible by 400. February therefore has 29 days in 2028 and 28 in 2026, and the page reads the real month length rather than a table.

Which time zone does the page use?

Every date is read as a civil date in this browser's local time zone: the page carries no time-zone database and no locale data, and nothing you type is sent anywhere.

What if one range ends the day the other begins?

They share that one day, so the page reports an overlap of one day and prints it. To treat the end date as exclusive, move it back one day before entering it.

Does the page refuse a reversed range?

Yes. A range whose end is before its start is refused by name rather than silently swapped, because swapping would answer a question you did not ask.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.