SQL>
SQL> set serverout on;
SQL>
SQL> -- Date datatypes
SQL>
SQL>
SQL> DECLARE
2 myDate Date;
3
4 BEGIN
5 myDate := sysdate;
6
7 DBMS_OUTPUT.PUT_LINE(myDate);
8
9 END;
10 /
10-SEP-06
PL/SQL procedure successfully completed.
SQL>