to_date function in oracle code example
Example 1: oracle to_date
SELECT
TO_DATE( '21 12 2017', 'DD MM YYYY' )
FROM
dual;
---or----
INSERT INTO members(first_name, last_name, joined_date)
VALUES('Laureen','Davidson', TO_DATE('2017/12/21','YYYY/MM/DD'));
Example 2: oracle to date
SELECT
TO_DATE( '5 Jan 2017', 'DD MON YYYY' )
FROM
dual;
---or----
INSERT INTO members(first_name, last_name, joined_date)
VALUES('Laureen','Davidson', TO_DATE('Feb 01 2017','Mon DD YYYY'));