We're updating the issue view to help you get more done. 

SimpleDateFormat does not format date "MMMMM" as specified

Description

I can't reopen #5154, so I'm filing a new ticket for this.

SimpleDateFormat still does not format date "MMMMM" as specified in the Javadoc.

Sample code:

SimpleDateFormat format= new SimpleDateFormat("MMMMM", new Locale("en", "US")); format.format(new Date(System.currentTimeMillis()));

The output of the format is "J" instead of "January". This is in contrast to the JDK implementation which returns the full name "January".

Assuming that you want to keep the current behavior, please fix the Javadoc:

  • clearly state that five "M" is interpreted differently than in Java

  • state how "MMMMM" will be formatted

  • fix the examples ("EEE, MMM d, ''yy" and "yyyyy.MMMMM.dd GGG hh:mm aaa" are giving wrong results)

Environment

Status

Assignee

Douglas Felt

Reporter

TracBot

tracCreated

Jan 08, 2010, 7:14 PM

tracOwner

doug

tracProject

ICU4J

tracReporter

markus_keller@558b59ffb5949bc5

tracStatus

accepted

Components

Priority

assess