I am working on project where I need to convert Non English dates to standard JAVA Calender/Date format. For example date like helmikuu 13, 2013
should be converted to 13 February, 2013.
I think its doable using Java Simple Date Format Locate Function. I tried to use this code but it throws Unparseable date: "helmikuu 13, 2013"
error.
public static void main(String args[]) throws Exception {
String dateInFin = "helmikuu 13, 2013";
Locale localeFi = new Locale("fi", "FI");
DateFormat dateFormatFin = new SimpleDateFormat("MMMMM dd, yyyy");
dateFormatFin.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, localeFi);
System.out.println("Locale: "+localeFi.getDisplayName());
System.out.println(dateFormatFin.parse(dateInFin));
}