Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4246972

Unparseable date in SimpleDateFormat Feb, 29

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.1
    • core-libs
    • x86
    • windows_95



      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)
      ======================================================================

            nlindenbsunw Norbert Lindenberg (Inactive)
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: