The dateTimeLib.dateValue() system function returns a DATE value that corresponds to a STRING variable. EGL maintains this function for compatibility only; in new code, you can simply assign a character value to a DATE variable. See Converting text to date/time types.
dateTimeLib.dateValue(dateAsString STRING? in)
returns (result DATE?)