Try OpenEdge Now
skip to main content
Java Open Clients
Passing Parameters : ABL data type mappings : Date and time conversions
 

Date and time conversions

The ABL DATE, DATETIME, and DATETIME-TZ data types are all mapped to the java.util.GregorianCalendar class. This class supports all the necessary functionality for these data types (it supports date, time, and time zone data). The Java Open Client processes the data differently based on the ABL data type, as shown in the following table.
Table 5. GeorgianCalendar object processing
Progress data type
Process
DATE
Input: Time and time zone information is ignored
Output: Client time zone is used. Time is set to 0 (midnight)
DATETIME
Input: Time zone information is ignored
Output: Client time zone is used
DATETIME-TZ
Input and Output: Date, time, and time zone is preserved