i can't save my date into my oracle...
i added this set of codes into my program that shows the current date and time when the jsp is being run. but i would like to save it into my orcale database.. how do i do it?
<% System.out.println("Evaluating date now" );
java.util.Date date =new java.util.Date();%>
Cheer :)
tarojaz
[381 byte] By [
tarojaza] at [2007-10-2 17:50:09]

i have this:
String date1 = "01/01/2006";//mm/dd/yyyy
insertSql1 = "INSERT INTO TABLE_NAME VALUES(TO_DATE(?,'mm/dd/yyyy'))";
//System.out.println("insertSql: "+insertSql1);
pstmt = con.prepareStatement(insertSql1);
pstmt.setString(1,date1);pstmt.executeUpdate();
con.commit();
pstmt.close();
con.close();