The dateTimeLib.dateOf() system function returns a DATE value derived from a TIMESTAMP variable. EGL maintains this function for compatibility only; in new code, you can simply assign a TIMESTAMP value to a DATE variable. See Assignment compatibility in EGL.
dateTimeLib.dateOf(aTimeStamp TIMESTAMP? in)
returns (result DATE?)