NullableTypes Class Library

NullableDateTime Constructor (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.

[Visual Basic]
Overloads Public Sub New( _
   ByVal year As Integer, _
   ByVal month As Integer, _
   ByVal day As Integer, _
   ByVal hour As Integer, _
   ByVal minute As Integer, _
   ByVal second As Integer, _
   ByVal millisecond As Integer _
)
[C#]
public NullableDateTime(
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second,
   int millisecond
);

Parameters

year
The year (1 through 9999).
month
The month (1 through 12).
day
The day (1 through the number of days in month.
hour
The hours (0 through 23).
minute
The minutes (0 through 59).
second
The seconds (0 through 59).
millisecond
The milliseconds (0 through 999).

See Also

NullableDateTime Class | NullableTypes Namespace | NullableDateTime Constructor Overload List