Click or drag to resize
Date Constructor (Int32, Int32, Int32)
Initializes a new date from the month, day, and year.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Date(
	int month,
	int day,
	int year
)

Parameters

month
Type: SystemInt32
the month (between 1 and 12)
day
Type: SystemInt32
the day (between 1 and 28-31, depending on the month)
year
Type: SystemInt32
the year
Exceptions
ExceptionCondition
ArgumentExceptionif this date is invalid
See Also