Boa noite,
Meu código é este
public class Teste {
String data = "25/10/1997";
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
Date dataFormatada;
public void imprime() throws ParseException{
dataFormatada = df.parse(data);
System.out.println(dataFormatada);
}
public static void main(String[] args) throws ParseException {
new Teste().imprime();
}
}
O resultado é esse
Sun Oct 25 01:00:00 BRST 1997
Alguém sabe porque? Não deveria sair ¨25/10/1997¨?