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.