DateTimeExtensions..::..Intersects Method

Intersectses the specified end date. Returns true if two date ranges intersect. bool eventsInterect = eventXStartDate.Intersects(eventXEndDate, eventYStartDate, eventYEndDate);

Namespace:  Core
Assembly:  Core (in Core.dll)

Syntax


public static bool Intersects(
	DateTime startDate,
	DateTime endDate,
	DateTime intersectingStartDate,
	DateTime intersectingEndDate
)

Parameters

startDate
Type: DateTime
The start date.
endDate
Type: DateTime
The end date.
intersectingStartDate
Type: DateTime
The intersecting start date.
intersectingEndDate
Type: DateTime
The intersecting end date.

Return Value

true if XXXX, false otherwise.