Liquid XML Data Binder 2019
VB6 SetDateTime - DateTime
Liquid XML Data Binder (C++, Java, VB6) > Reference > Visual Basic 6 > Reference > DateTime > VB6 SetDateTime - DateTime
Public Sub SetDateTimeEx(ByVal iYear As Long,
                                                ByVal iMonth As Byte,
                                                ByVal iDay As Byte,
                                                ByVal iHour As Byte,
                                                ByVal iMinute As Byte,
                                                ByVal iSecond As Byte)
  Property Description  
    Argument iYear sets the Year part of the date. (Valid Range -9999 to 9999)  
    Argument iMonth sets the Month part of the date. Jan = 1, Feb = 2 etc. (Valid Range = 1 to 12)  
    Argument iDay sets the Day part of the date. (Valid Range = 1 to days in month)  
    Argument iHour sets the Hours part of the date. (Valid Range = 0 to 23)  
    Argument iMinute sets the Minutes part of the date. (Valid Range = 0 to 59)  
    Argument iSecond sets the Seconds part of the date. (Valid Range = 0 to 59)  
    Description Populates this DateTime as type dateTime.  
    Remarks This method is overloaded allowing different values to be set.
Any values that are not provided are set to 0.
NOTE: DateTime uses the XML Schema formula for proleptic Gregorian calendar where year 0 is illegal and -4 (4BC) as a leap year.

Throws: on parsing invalid values.
Throws: if this DateTimes current type is not either zeroYear or dateTime.