it gives error - symbol : method TO_DATE(java.lang.String,java.lang.String) location: class dbbean.addcontentbean pstmt.setString(4,TO_DATE(PG_DATE,"DD-MM-YYYY"));
its because compiler didn't found any function defined by name TO_DATE in addcontentbean class. its a SQL function so you must define your SQL related things in your SQL Query as Satou defined in a SQL statement.
how can i pass it with preparedstatement.
In preparedStatment SetXXX Method only takes 2 parameter one is value and another its(value) bound location.