I need to insert custom date time in the oracle database where the ITEM_TIME_DATE column has the TIMESTAMP data type.
Here is my query:
INSERT INTO items
(ITEM_AUTHOR_ID, ITEM_TITLE, ITEM_DESCRIPTION, ITEM_TIME_DATE, ITEM_STATUS)
VALUES
('0', 'test title', 'test des', TO_TIMESTAMP('12-23-2015 8:00 PM', 'MM-DD-YYYY HH24:MI:SS'), 0);
Though the custom date should convert to a timestamp format, but i am getting this error:
ORA-01858: a non-numeric character was found where a numeric was expected
I am using Oracle 11.2.0.2.0 (Windows 10) 64-bit