string - Date from SQL datebase to JCalander -
i used http://toedter.com/ jdatechooser
date user. want reset selected date calendar sql database. code wrote put selected date database.
pst.setstring(5, ((jtextfield)datead.getdateeditor().getuicomponent()).gettext());
i figured out myself.
java.util.date dateadx = new simpledateformat("yyyy-mm-dd").parse(dateadm);
here dateadm
string variable want store date in jdatechooser
.
then can call
datead.setdate(dateadx)
to set date.
Comments
Post a Comment