This is my code
CREATE OR REPLACE FUNCTION GET_DATE(P_DAYS IN NUMBER) RETURN DATE AS V_DATE DATE; BEGIN V_DATE := SYSDATE+P_DAYS; DBMS_OUTPUT.PUT
I think you need to do something like this:
CREATE OR REPLACE FUNCTION GET_DATE(p_days IN NUMBER) RETURN VARCHAR2 AS v_date VARCHAR2(30); BEGIN v_date := TO_CHAR(SYSDATE + p_days, 'YYYY-MM-DD HH24:MI:SS'); RETURN v_date; END; /