DateInterval Constructor (LocalDate, LocalDate, Boolean)Noda Time

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

Constructs a date interval from a start date and an end date, and an indication of whether the end date should be included in the interval.

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

public DateInterval(
	LocalDate start,
	LocalDate end,
	bool inclusive
)

Return Value

Type:
A date interval between the specified dates, with the specified inclusivity.
Exceptions

ExceptionCondition
OnlineSystem ArgumentExceptionend is earlier than start or the two dates are in different calendars.
Version Information

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