How can I dynamically convert Date
to Ukrainian?
I am using this code:
final SimpleDateFormat dateFormat = new SimpleDateFormat("MMMM, yyyy"); final Date date = calendar.getTime(); final TextView chosenMonth = (TextView) findViewById(R.id.chosenMonth); chosenMonth.setText(dateFormat.format(date));
Format the date as "September 2013." This text language is the language of the device, but I need to format this date and display only in Ukrainian.
I tried to implement this using the Locale
class, but there is no constant for the UA language.
source share