1

I'm working on a project which is Java SE Sinhalese Unicode application and i want to show date in Sinhalese.After searching on stackoverflow i found that i can use ICU4J but it didn't worked.

This the code i have used

ULocale locale = ULocale.forLanguageTag("si-LK"); 
dfDate = new SimpleDateFormat("MMMMM d, YYYY", locale.toLocale());
date = new Date();
lblDate.setText(dfDate.format(date));

but it still gives the output in English.

4

1 回答 1

3

为我工作。ජ 7, 2014. 确保您SimpleDateFormat在导入时使用 ICU。

于 2014-01-07T23:05:05.400 回答