Liquid XML Data Binder 2020
Liquid XML Data Binder (C++, Java, VB6) / Reference / C++ / Reference / CDateTime / C++ GetYear
In This Topic
    C++ GetYear
    In This Topic
    short () const;
      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: CDateTime 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