aspose file tools*
The moose likes Java in General and the fly likes Formatting date as MMM for japnese locale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Formatting date as MMM for japnese locale" Watch "Formatting date as MMM for japnese locale" New topic
Author

Formatting date as MMM for japnese locale

Manju Krishna
Ranch Hand

Joined: Apr 09, 2009
Posts: 48
    
    1
Hi,
I need to format the given date in "yyyy-MMM-dd HH:mm:ss" format for any locale and the given date is in "yyyy-MM-dd HH:mm:ss" this format.




The output of the code for en_US and es_MX(spanish) are fine and are respectively the following
en_US -- > 2011-Aug-04 11:30:00
es_MX -- > 2011-ago-04 11:30:00

But for ja_JP -- > 2011-8-04 11:30:00 (The months MMM is returned as single digit M).
Should we have any special handling for japanese (ja_JP) ?
Please help ..

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Formatting date as MMM for japnese locale