I have a date in String format: 2017-05-10. I need to transform this string in this 10/05/2017. How i can do? Which library i can use? I have tried this but not works
DateFormat df = new SimpleDateFormat("dd-MM-yyyy",Locale.ITALIAN);
Calendar cal = Calendar.getInstance();
cal.setTime(df.parse(data));