• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Formatting date as MMM for japnese locale

 
Ranch Hand
Posts: 48
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Police line, do not cross. Well, this tiny ad can go through:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic