Hi,
I tried it out..
Query look slike:
......
+ "TO_DATE('" + (new Timestamp(System.currentTimeMillis())) + "','YYYY-MM-DD HH24:MI:SS.MS'), " +
.......
INSERT INTO tss_e110_d3.T_WMMC_FILES_LOG (WMFL_FILE_ID, WMFL_FILE_NAME, WMFL_FORMAT_ID, WMFL_UPLOADED_BY, WMFL_UPLOADED_ON, WMFL_LOCALE_ID, WMFL_STATUS_ID) VALUES ('11', 'uploadFileName.txt', 3, 'TSS_E110_D3_ADMIN' , TO_DATE('2003-08-28 11:01:08.603','YYYY-MM-DD HH24:MI:SS.MS'), 1, 1)
java.sql.SQLException: ORA-01821: date format not recognized
Any idea wht i am doing wrong???
Is it because the millisseconds has 3 digits and not 2?
thanks.