Results 1 to 2 of 2

Thread: Display Date in Chinese Language

  1. #1
    Join Date
    Jun 2007
    Posts
    23

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Stockholm
    Posts
    466

    Default

    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
    Sincerely,
    /The Cantor

    "Murphy was an optimist"
    (The O'Toole commentary on Murphy's Law)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •