DateTime Constructor (Int32, Int32, Int32)
Initializes a new instance of the DateTime structure and sets it to the specified year, month, and day.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public DateTime (
int year,
int month,
int day
)
Parameters
- year
The year, expressed as a number ranging from 1 through 9999. - month
The month, expressed as a number ranging from 1 through 12. - day
The day, expressed as a number ranging from 1 through 31.
Remarks
The time-of-day component for the new DateTime object is ininitalized to midnight (00:00:00).
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.