import java.util.Date;
import java.util.Locale;
public class JavaApplication1 {
public static void main(String[] args) {
String str = "22-Oct-2016";
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy", Locale.ENGLISH);
try {
Date dt = dateFormat.parse(str);
dateFormat = new SimpleDateFormat("dd-MM-yyyy");
System.out.println(dateFormat.format(dt));
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
}
/*
run:
22-10-2016
*/