Subject Inserting DATES
Author Francisco Vieira
How can I INSERT dates using a Stored Procedure? I mean if I have a JTextField with the date and I want to insert as a parameter, should I convert to something? what should be that?
 
I tryed this way but I had an error:
 
Date dateField = new Date( jTextFieldDate.getText() );                  
p.setDate(4, dateField);
 
 
error:
cannot resolve symbol
symbol  : method setDate  (int,java.util.Date)
location: interface java.sql.CallableStatement
Help!!!!!