Proper Russian month string translation Java

后端 未结 5 1809
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 10:53

I want to convert a Date in to Russian and using the code below

SimpleDateFormat.getDateInstance(SimpleDateFormat.LONG,locale).format(date);
<
5条回答
  •  情深已故
    2020-12-09 11:48

    AFAIK, there's no support for localisation in accusative case in the JDK. I would suggest to use the MEDIUM date format to work around that if it's suitable: 15 Фев 1999

    Failing that you may end up having to provide your own localisations for month names.

提交回复
热议问题