Asked • 07/25/19

Determine Whether Two Date Ranges Overlap?

Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap?As an example, suppose we have ranges denoted by DateTime variables `StartDate1` to `EndDate1` *and* `StartDate2` to `EndDate2`.

1 Expert Answer

By:

Patrick B. answered • 09/07/19

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.