Search code examples
androidlocale

Android format date using X country translation


For date parsing, I'm using SimpleDateFormat. I know that it's possible to pass Locale object to translate month names.

I tried to use the Estonian language: Locale("ee", "Estonia"), but it did not work. Am I using the wrong language code or Estonian language is not supported thus I've to use a different approach?


Solution

  • I was able to use Estonian by using:

    Locale("et", "ee")