Liquid XML Data Binder 2020
Liquid XML Data Binder (C++, Java, VB6) / Reference / C++ / Reference / CDateTime / C++ SetGYear
In This Topic
    C++ SetGYear
    In This Topic
    void SetGYear(short year);
      Property Description  
        Argument year sets the Year part of the date. (Valid Range -9999 to 9999)  
        Description Populates this CDateTime as type gYear.  
        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: LtInvalidValueException thrown on parsing invalid values.
    Throws: LtInvalidStateException thrown if this DateTimes current type is not either zeroYear or gYear.