Tuesday, 17 September 2013

Jdatechooser getDate() method is not working

Jdatechooser getDate() method is not working

I'm tryin g to get date from jdate chooser. So I used this update query.
But now I'm getting this getDate() method as "cannot find the symbol"
error. I'm using JDBC class. here is my query.
try {
new JDBC().putData("UPDATE work SET
balance='"+txtValue.getText()+"', date='"+new
SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date.getdate()) +"'
WHERE id='1'");
} catch (Exception e) {
JOptionPane.showMessageDialog(null, this.getClass().getName() +"
"+e);
}

No comments:

Post a Comment