Duplicate :
|
Name: vi73552 Date: 06/16/99 SimpleDateFormat dateFormat = new SimpleDateFormat( "ddMMyyyy" ); dateFormat.setLenient( false ); String buffer = "29021996"; Date d = dateFormat.parse( buffer2.substring( 0, 8 ) ); >>> java.text.ParseException: Unparseable date: "29021996" Obviously, the same problem occurs with years 1964, 1968... (Review ID: 84408) ======================================================================
|