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.
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.
Locale locale = new Locale("es");
SimpleDateFormat sf = new SimpleDateFormat("MMMM d yyyy", locale);