* Format string e.g. "d M yyyy"
* @return The date string where the month names have been replaced by the
* browser locale version
*/
private String parseMonthName(String enteredDate, String formatString) {
LocaleInfo browserLocale = LocaleInfo.getCurrentLocale();
if (browserLocale.getLocaleName().equals(getLocale())) {
// No conversion needs to be done when locales match
return enteredDate;
}
String[] browserMonthNames = browserLocale.getDateTimeConstants()
.months();
String[] browserShortMonthNames = browserLocale.getDateTimeConstants()
.shortMonths();
if (formatString.contains("MMMM")) {
// Full month name
for (int i = 0; i < 12; i++) {