Pq o código abaixo retorna 30/11/0002 ???
import java.text.DateFormat;
import java.text.SimpleDateFormat;
public class teste {
public static void main(String[] args) {
DateFormat dtf = new SimpleDateFormat("yyyyMMdd");
try {
dtf.parse("00000000");
} catch (Exception e) {
// do nothing
}
}
}
Obrigado.