SQL>
SQL>--
SQL>-- Call function from PL/SQL
SQL>--
SQL>DECLARE2 v_days NUMBER:=0;3BEGIN4 v_days:=days_bet_dts(to_date('01/01/0001','MM/DD/YYYY'), to_date('10/31/1517','MM/DD/YYYY'));56 dbms_output.put_line('Days between the two dates; '||v_days);7END;8/
Days BETWEEN the two dates; 554022