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

API: No way to change two digit start date in java.text.DateFormat

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P5 P5
    • None
    • 1.2.0
    • core-libs
    • generic
    • generic



      Name: diC59631 Date: 10/28/98


      Unlike the SimpleDateFormat class than allows the two digit
      starting date to be set and returned via the methods
      set2DigitYearStart and get2DigitYearStart respectively, there
      is no similar support in the DateFormat class. This prevents
      setting the two digit date start for any of the predefined
      date formats short, medium, long and full.

      This is very easily fixed by modifying the DateFormat class:
      1. Add the methods set2DigitYearStart and get2DigitYearStart
         copied from SimpleDateFormat.
      2. Modify the private get method to call
         SimpleDateFormat.set2DigitYearStart if the private
         java.util.Date object set by set2DigitYearStart is non
         null.
      (Review ID: 41232)
      ======================================================================

            aliusunw Alan Liu (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: