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

```
SimpleDateFormat.getDateInstance(SimpleDateFormat.LONG,locale).format(date);

```

where locale is of type Locale
The problem is months are not parsed correctly . January is coming as "январь" it should be "января" and February is coming as "февраль" should be "февраля"

and so on...

One idea is to convert incorrect months to proper ones in my logic

Is there any thing by which Java do this automatically ?

Thanks

Answer: 
For **Java 8** you can use a new pattern.

In short:
The `"LLLL"` pattern will get a *Nominative* case:

```
new SimpleDateFormat("LLLL", Locale.getDefault()).format(date); // январь

```

The `"MMMM"` pattern will return a `String` in *Genitive* case:

```
new SimpleDateFormat("MMMM", Locale.getDefault()).format(date); // января

```

Alternatively, instead of hardcoding Russian months in array (since we have Polish, Ukrainian and other languages), you could use the `java.time.Month` enum. It contains both months `int` number and `String` name.
Sorry if my answer would not fully fit the question, but still' I'd like to share my way of solving the issue with translating the Date into Russian format. 

Had big headache with dealing with DateTime Locales and so on, I started to simply translate Weekdays and Months in String representation of original DateTime.

```
String originalDate = "Tue, 22 Nov 2016 01:03:00 +0300";
Log.d("Date in Russian",convertStringDateToRussian(linkText));

public String convertStringDateToRussian(String mDate) {

    String[] engWeek = {
            "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
            "Sun"};
    String[] ruWeek = {
            "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота",
            "Воскресенье"};
    String[] engMonths = {
            "Jan", "Feb", "Mar", "Apr", "May", "Jun",
            "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
    String[] ruMonths = {
            "января", "февраля", "марта", "апреля", "мая", "июня",
            "июля", "августа", "сентября", "октября", "ноября", "декабря"};
    for (
            int t = 0;
            t < engWeek.length; t++)

    {
        if (mDate.contains(engWeek[t])) {
            mDate = mDate.replace(engWeek[t], ruWeek[t]);
            break;
        }
    }

    for (
            int t = 0;
            t < engMonths.length; t++)

    {
        if (mDate.contains(engMonths[t])) {
            mDate = mDate.replace(engMonths[t], ruMonths[t]);
            break;
        }
    }

    return mDate;
}

```