Liquid XML Data Binder 2021
Liquid XML Data Binder (C++, Java, VB6) / Reference / Java / Reference / com.liquid_technologies.ltxmllib19 / DateTime / Java setDate - DateTime
In This Topic
    Java setDate - DateTime
    In This Topic
    public void setDate(short year, byte month, byte day)
    throws LtInvalidValueException, LtInvalidStateException
      Property Description  
        Argument year sets the Year part of the date. (Valid Range -9999 to 9999)  
        Argument month sets the Month part of the date. Jan = 1, Feb = 2 etc. (Valid Range = 1 to 12)  
        Argument day sets the Day part of the date. (Valid Range = 1 to days in month)  
        Description Populates this DateTime as type date.  
        Remarks NOTE: DateTime uses the XML Schema formula for proleptic Gregorian calendar where year 0 is illegal and -4 (4BC) as a leap year.
    Throws: LtInvalidValueException thrown on parsing invalid values.
    Throws: LtInvalidStateException thrown if this DateTimes current type is not either zeroYear or date.