Liquid XML Data Binder 2019
C++ GetType
Liquid XML Data Binder (C++, Java, VB6) > Reference > C++ > Reference > CDateTime > C++ GetType
DTType GetType() const;
  Property Description  
    Returns The type of the date time stored  
    Description Gets the type of this CDateTime.  
    Remarks The type effects which methods will throw a LtInvalidStateException.
e.g. You cannot call getYear() if the type is not date, dateTime, gYear or gYearMonth as no Year element is available.

    enum DTType
        {
                dt_yearZero = 0,
                dt_dateTime,
                dt_date,
                dt_gYearMonth,
                dt_gYear,
                dt_time,
                dt_gDay,
                dt_gMonth,
                dt_gMonthDay
        };