DateInterval Contains Method Noda Time

[This is preliminary documentation and is subject to change.]

Checks whether the given date is within this date interval. This requires that the date is not earlier than the start date, and not later than the end date. If the given date is exactly equal to the end date, it is considered to be within the interval if and only if the interval is Inclusive.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public bool Contains(
	LocalDate date
)

Parameters

date
Type: NodaTime LocalDate
The date to check for containment within this interval.

Return Value

Type: OnlineBoolean
true if date is within this interval; false otherwise.
Exceptions

ExceptionCondition
OnlineSystem ArgumentExceptiondate is not in the same calendar as the start and end date of this interval.
Version Information

Available since: 2.0.0
Supported in the PCL? Yes
See Also