DateInterval Equals Method (DateInterval)Noda Time

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

Compares the given date interval for equality with this one.

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

public bool Equals(
	DateInterval other


Type: NodaTime DateInterval
The date interval to compare this one with.

Return Value

Type: OnlineBoolean
True if this date interval has the same properties as the one specified.


OnlineIEquatable T  Equals(T)

Date intervals are equal if they have the same start and end dates and are both inclusive or both exclusive: an exclusive date interval of [2001-01-01, 2001-02-01) is not equal to the inclusive date interval of [2001-01-01, 2001-01-31], even though both contain the same range of dates.
Version Information

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