Click or drag to resize

DayTo Method (Int32, Int32, Int32)

Returns the DayRange covering (inclusively) the days between this Day and the Day represented by the specified parameters (which can be before, after, or equal to this Day).

Namespace:  DegreeDays.Time
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
Syntax
public DayRange To(
	int toYear,
	int toMonthOfYear,
	int toDayOfMonth
)

Parameters

toYear
Type: SystemInt32
The year of the Day that this Day should be extended to - a number greater than 0 and less than or equal to 9999.
toMonthOfYear
Type: SystemInt32
The month-of-the-year of the Day that this Day should be extended to - a number between 1 and 12 (inclusive), January being 1 and December being 12.
toDayOfMonth
Type: SystemInt32
The day-of-the-month of the Day that this Day should be extended to - a number between 1 and 31, although the upper limit depends on the month (since different months have different numbers of days), and the year (since February has 29 days on leap years and 28 otherwise).

Return Value

Type: DayRange
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionAny of the parameters are outside of their allowed ranges i.e. the to-date specified doesn't correspond to a real calendar date, or it is outside the range allowed by Day (0001-01-01 to 9999-12-31 inclusive).
Version History
VersionDescription
1.2 This was added in version 1.2.
See Also