c# how to check if a range of two datetimes intersect code example Example: check if two timespans intersect c# bool overlap = a.start < b.end && b.start < a.end;