Liquid XML Data Binder 2021
Liquid XML Data Binder (C++, Java, VB6) / Reference / Java / Reference / com.liquid_technologies.ltxmllib19 / DateTime / Java getYear - DateTime
In This Topic
    Java getYear - DateTime
    In This Topic
    public short getYear()
         throws LtInvalidStateException
      Property Description  
        Returns the Year part of the date. (Valid Range -9999 to 9999)  
        Description Gets the Year part of the date. (Valid Range -9999 to 9999)  
        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: LtInvalidStateException thrown if the type is not gDate, gDateTime, gYear or gYearMonth