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

New era placeholder not displayed using java.text.DateFormat

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 11.0.2
    • core-libs
    • None

      System.out.println(
        new SimpleDateFormat("Gy-M-d", new Locale("ja","JP","JP")).format(
          new Calendar.Builder().setDate(2019,Calendar.MAY,1).build().getTime()))

      Expected Result: 元号1-5-1

      Actual Result: N1-5-1

            naoto Naoto Sato
            ysatowse Yoshiki Sato (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: