Compare date and datetime values
- Last Updated: December 3, 2025
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
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.