1

my function always return current date only

view story
linux-howto

http://stackoverflow.com – What is problem in my code where method always returns current date I just want to change format of date Did I miss something? ... String mydate; mydate=ConvertToDate("2013/09/25"); private String ConvertToDate(String dateString){ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date convertedDate = new Date(); try { convertedDate = dateFormat.parse(dateString); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } String newdate; newdate = da (HowTos)