Subject | Inserting DATES |
---|---|
Author | Francisco Vieira |
Post date | 2003-09-22T12:17:12Z |
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
symbol : method setDate (int,java.util.Date)
location: interface java.sql.CallableStatement
Help!!!!!