You cannot compare data of different DATE, DATETIME, and DATETIME-TZ data types to each other using relational operators (for example, EQ) or the MAXIMUM and MINIMUM functions. You must first convert different date and datetime data types to the same data type before doing a comparison between them.

For more information on working with dates and times, see Work with dates and times in Basic ABL.