Convert char to date: TO_DATE('January 01, 2000','Month DD, YYYY')
SQL>
SQL> -- Datatype conversion
SQL>
SQL> DECLARE
2 myDate DATE;
3 BEGIN
4 myDate := TO_DATE('January 01, 2000','Month DD, YYYY');
5
6 DBMS_OUTPUT.PUT_LINE(myDate);
7 END;
8
9
10
11 /
01-JAN-00
PL/SQL procedure successfully completed.
SQL>
Related examples in the same category