Share via


DateTime Constructor

Initializes a new instance of the DateTime structure.

Overload List

Name Description
DateTime (Int32, Int32, Int32) Initializes a new instance of the DateTime structure and sets it to the specified year, month, and day.
DateTime (Int32, Int32, Int32, Int32, Int32, Int32) Initializes a new instance of the DateTime structure and sets it to the specified year, month, day, hour, minute, and second.
DateTime (Int32, Int32, Int32, Int32, Int32, Int32, Int32) Initializes a new instance of the DateTime structure and sets it to the specified year, month, day, hour, minute, second, and millisecond.
DateTime (Int64) Initializes a new instance of the DateTime structure and sets it to the specified number of ticks.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

DateTime Structure
DateTime Members
System Namespace