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

Feb. 2000 has 29 days, but Date(2000, 1, 29) returns March 01, 2000

XMLWordPrintable



      Name: el35337 Date: 03/09/98


      java.util.Date d=new java.util.Date(2000, 1, 29);
      int m=d.getMonth();
      int date=d.getDate();

      /*
      the integer m should be 1, date should be 29
      but integer m is 2, and date is 1
      */


      Gemini Systems
      (Review ID: 26107)
      ======================================================================

            aliusunw Alan Liu (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: