How do I get a list of month names for a locale?
Created Nov 27, 2000
John Zukowski Pass the locale to the DateFormatSymbols constructor and ask for the list of month symbols:
Locale locale = new Locale("es", "ES");
DateFormatSymbols symbols =
new DateFormatSymbols(locale);
String monthNames[] = symbols.getMonths();
For English / the default locale, don't pass anything to the constructor.