SimpleDateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd"); String from=fromDateEtxt.getText().toString(); Date d=new Date(); try { d = inputFormat.parse(from); } catch (ParseException e1) { e1.printStackTrace(); } String f=inputFormat.format(d); Thanks
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)