Unparseable date in SimpleDateFormat Feb, 29

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.1
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: