DateTime Constructor
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
Initializes a new instance of the DateTime structure.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
DateTime(Int64) | Initializes a new instance of the DateTime structure to a specified number of ticks. | |
DateTime(Int64, DateTimeKind) | Initializes a new instance of the DateTime structure to a specified number of ticks and to Coordinated Universal Time (UTC) or local time. | |
DateTime(Int32, Int32, Int32) | Initializes a new instance of the DateTime structure to the specified year, month, and day. | |
DateTime(Int32, Int32, Int32, Calendar) | Initializes a new instance of the DateTime structure to the specified year, month, and day for the specified calendar. | |
DateTime(Int32, Int32, Int32, Int32, Int32, Int32) | Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, and second. | |
DateTime(Int32, Int32, Int32, Int32, Int32, Int32, DateTimeKind) | Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second, and Coordinated Universal Time (UTC) or local time. | |
DateTime(Int32, Int32, Int32, Int32, Int32, Int32, Calendar) | Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, and second for the specified calendar. | |
DateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) | Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second, and millisecond. | |
DateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, DateTimeKind) | Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second, millisecond, and Coordinated Universal Time (UTC) or local time. | |
DateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar) | Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second, and millisecond for the specified calendar. | |
DateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar, DateTimeKind) | Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second, millisecond, and Coordinated Universal Time (UTC) or local time for the specified calendar. |
Top