你好,请帮助我,我已经经历了很多问题,但没有得到解决方案。 代码解析日期西班牙语错误
String localDate1="Miércoles, 04 Octubre 2017 12:00 PM";
Locale spanishLocale=new Locale("es", "ES");
SimpleDateFormat spanishLocale1=new SimpleDateFormat(getString(R.string.jom_events_date_input_format_12_hrs),spanishLocale);
String dateInSpanish=spanishLocale1.parse(localDate1).toString();
Log.v("@@@WWW","in Spanish: "+dateInSpanish);
错误
java.text.ParseException: Unparseable date: "Miércoles, 04 Octubre 2017 12:00 PM" (at offset 33)
什么是'值getString(R.string.jom_events_date_input_format_12_hrs)' –
EEEE,dd MMMM yyyy hh:mm a,当我解析englisn日期它的工作原理虽然 –
我的默认语言环境也是“es” –