Click or drag to resize

Day Constructor

Constructs a Day representing a date with the specified year, month, and day.

Namespace:  DegreeDays.Time
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
Syntax
public Day(
	int year,
	int monthOfYear,
	int dayOfMonth
)

Parameters

year
Type: SystemInt32
The year - a number greater than 0 and less than or equal to 9999.
monthOfYear
Type: SystemInt32
The month of the year - a number between 1 and 12 (inclusive), January being 1 and December being 12.
dayOfMonth
Type: SystemInt32
The day of the month - 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).
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionAny of the parameters are outside of their allowed ranges i.e. the date 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).
See Also