Version

SmartDate Constructor(Int32,Int32,Int32,Int32,Int32,Int32)

Creates a new SmartDate instance.
Syntax
'Declaration
 
Public Function 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 _
)
public SmartDate( 
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second
)

Parameters

year
The year (1 through 9999).
month
The month (1 through 12).
day
The day number (1 through the number of days in month).
hour
The hour (0 through 23, values 12 through 23 are post-meridian).
minute
The minute (0 through 59).
second
The second (0 through 59).
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThrown when one or more of the parameters has a value outside of its domain of acceptable values.
Remarks

Provided for compatibility with DateTime. By default, EmptyIsMin is True for SmartDate instances created using this constructor.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also