Determine Whether Two Date Ranges Overlap
Posted
by Ian Nelson
on Stack Overflow
See other posts from Stack Overflow
or by Ian Nelson
Published on 2008-11-28T14:48:35Z
Indexed on
2010/03/09
2:51 UTC
Read the original article
Hit count: 320
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.
© Stack Overflow or respective owner