CAN ANYONE HELP OUT WITH THIS ???
java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("mmm dd yyyy hh:mm a");
java.util.Date dt = new java.util.Date();
String dtStr = formatter.format(dt);
java.sql.Date objDt = new java.sql.Date.valueOf(dtStr);
cStmt.setDate(2,objDt); (cStmt is an object of Callable Statement)
THE ABOVE CODE WHEN COMPILED GIVES THE FOLLOWING COMPILER ERROR(FYI I AM USING JDK1.2.2)
Class java.sql.Date. valueOf not found. java.sql.Date objDt = new java.sql.Date.valueOf(dtStr);
^
1 error