DateTime Constructor (Int32, Int32, Int32, Int32, Int32, Int32, DateTimeKind)
Assembly: mscorlib (in mscorlib.dll)
public: DateTime ( int year, int month, int day, int hour, int minute, int second, DateTimeKind kind )
public DateTime ( int year, int month, int day, int hour, int minute, int second, DateTimeKind kind )
public function DateTime ( year : int, month : int, day : int, hour : int, minute : int, second : int, kind : DateTimeKind )
The year (1 through 9999).
The month (1 through 12).
The day (1 through the number of days in month).
The hours (0 through 23).
The minutes (0 through 59).
The seconds (0 through 59).
One of the DateTimeKind values that indicates whether year, month, day, hour, minute and second specify a local time, Coordinated Universal Time (UTC), or neither.
year is less than 1 or greater than 9999.
month is less than 1 or greater than 12.
day is less than 1 or greater than the number of days in month.
hour is less than 0 or greater than 23.
minute is less than 0 or greater than 59.
second is less than 0 or greater than 59.
kind is not one of the DateTimeKind values.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.