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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -