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

Make java.util.Calendar.JANUARY = 1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.4.0
    • core-libs
    • None

      The

      java.util.Calendar.get (Calendar.MONTH) is used alongwith
      Calendar.get (Calendar.YEAR) and
      Calendar.get (Calendar.DATE).

      While the other two results (Year and Date) are directly usable, since JANUARY to DECEMBER are enumerated from 0 to 11, an incrementation of get (MONTH) output is needed.

      This can be fixed without much of difficulty as it will help the users in ease of use.

            okutsu Masayoshi Okutsu
            rvijayansunw Ra Vijayan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: