Mono Class Library: System.DateTime Overview | MembersSystem.DateTime Constructor |
Constructs and initializes a new instance of the DateTime structure with a specified year, month, and day. [Edit]
|
Type Reason ArgumentOutOfRangeException year is less than 1 or greater than 9999
-or-
month is less than 1 or greater than 12
-or-
day is less than 1 or greater than the number of days in month
[Edit]
The time of day for the resulting DateTime is midnight (00:00:00). [Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0