I am using Codeigniter to insert data into an Oracle table which contains a date field. Sample code looks like this: Now the problem is, to insert date fields into Oracle, i need to use the to_date function which is executed in the database. With the above code, the to_date function comes out inside single quotes and Oracle throws out