java - change the display of a JXDATEPICKER -


i used jxdatepicker in jframe. but, date appears in following form: ven.15/10/2014

i want date appears in following format: yyyy-mm-dd thanks.

you can use simpledateformat this:

simpledateformat sf= new simpledateformat( "yyyy-mm-dd" ); res = sf.format(mydate); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -