Liquid XML Data Binder 2019
Java getYear - DateTime
Liquid XML Data Binder (C++, Java, VB6) > Reference > Java > Reference > com.liquid_technologies.ltxmllib17 > DateTime > Java getYear - DateTime
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