Previous Topic: CTSEDATE Date Function CallsNext Topic: ADD_DAYS Function—Add Days to a Date


RETURN_DATE Function—Return Current Date and Time

Use the RETURN_DATE function to return the current date and time. The date is a four-byte packed Julian date and the time is four-bytes.

DEF CUR_DAY      (P 7.0) = NONE 'TODAYS' 'DATE'
DEF CUR_TIME     (P 7.0) = NONE 'CURRENT' 'TIME'
DEF FUNCTION      (X 80) = NONE

SET FUNCTION = 'RETURN_DATE'
CALL CTSEDATE USING FUNCTION CUR_DAY CUR_TIME