Announcement Announcement Module
Collapse
No announcement yet.
Display Date in Chinese Language Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Display Date in Chinese Language

    Hi,

    I am making a web application and i have one requiremnt to display a date in Chinese and Spanish Language. I write a code to display the Current Date in i am using the folowing code for dispaly the date as follow.

    This code display the Current date in Spanish and the out put is write.

    Code:
    Locale locale = new Locale("es");
    
    SimpleDateFormat sf = new SimpleDateFormat("MMMM d yyyy", locale);
    System.out.println(sf.format(new Date()));
    I am facing the problem when i change the Locale to Chinese as "zh" but the output worng it display the date as English Format, so any one will help me how i can display the Date in CHINESE language.

    Thanks.

  • #2
    I have very(!!) little knowledge of Chinese date formats and such, but maybe a Google help could help you

    http://docs.sun.com/app/docs/doc/817...i69qk7e?a=view

    Comment

    Working...
    X