java - How to convert date in to String MM/dd/yyyy Format? -


i have date 2014-10-01 00:00:00.0 have convert 10/01.2014 how can i?

how one

try  {     string currentdate = "2014-10-01 00:00:00.0";     simpledateformat simpledateformat = new simpledateformat("yyyy-mm-dd hh:mm:ss.s");     date tempdate=simpledateformat.parse(currentdate);     simpledateformat outputdateformat = new simpledateformat("dd/mm.yyyy");                system.out.println("output date = "+outputdateformat.format(tempdate));   } catch (parseexception ex)    {         system.out.println("parse exception");   } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -