SimpleDateFormat possible error in method parse
问题 I receive a string that represent a date, I need convert this string to date, and validate that the string is a valid date. I receive the string 33-12-2013 a the parse method return a date 01-01-2014, the code: Date fechaVencimientoFormateada; SimpleDateFormat formateador = new SimpleDateFormat( "dd-MM-yyyy" ); try { fechaVencimientoFormateada = formateador.parse( "33-12-2013" ); System.out.println( formateador.format(fechaVencimientoFormateada) ); } catch ( ParseException e ) { System.out