O
ojvm
hi, i'm trying to set the date to method setDate of class
PreparedStatement to save it in a database but it send me a error this
is the part of code where a i'm having troubles. thanks in advance.
PreparedStatement ps = cn.prepareStatement("INSERT INTO test (date)
VALUES(?)");
java.util.Calendar fecha = java.util.Calendar.getInstance();
ps.setDate(1,fecha.getTime());
ps.execute();
PreparedStatement to save it in a database but it send me a error this
is the part of code where a i'm having troubles. thanks in advance.
PreparedStatement ps = cn.prepareStatement("INSERT INTO test (date)
VALUES(?)");
java.util.Calendar fecha = java.util.Calendar.getInstance();
ps.setDate(1,fecha.getTime());
ps.execute();