Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DateTime Constructor

Initializes a new instance of the DateTime structure.

Name Description
DateTime (Int64) Initializes a new instance of the DateTime structure to a specified number of ticks.

Supported by the .NET Compact Framework.

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.

Supported by the .NET Compact Framework.

DateTime (Int32, Int32, Int32) Initializes a new instance of the DateTime structure to the specified year, month, and day.

Supported by the .NET Compact Framework.

DateTime (Int32, Int32, Int32, Calendar) Initializes a new instance of the DateTime structure to the specified year, month, and day for the specified calendar.

Supported by the .NET Compact Framework.

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.

Supported by the .NET Compact Framework.

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.

Supported by the .NET Compact Framework.

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.

Supported by the .NET Compact Framework.

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.

Supported by the .NET Compact Framework.

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.

Supported by the .NET Compact Framework.

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.

Supported by the .NET Compact Framework.

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.

Supported by the .NET Compact Framework.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft