Formatos de Fechas, cambiar el formato de las fechas y pasar de Date a String y de String a Date
De Date a String
SimpleDateFormat formatoSimple = new SimpleDateFormat("dd/MM/yyyy");
System.out.println("Formato1: " + formatoSimple.format(new Date()));
De String a Date
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
try {
return sdf.parse("01/01/2010");
} catch (ParseException e) {
throw new RuntimeException(e);
}