解析日期错误:"Unparseable date: "Jue 28-05-2016 22:30“(偏移量为 0)”

Error to parse date: "Unparseable date: "Jue 28-05-2016 22:30" (at offset 0)"

我是 Android 的新手,我想解析一个带有日期的字符串,将其转换为日历对象,然后将其发送到 Android 日历。我的字符串值为 Jue 28-05-2015 22:30(Jueves 的 Jue,西班牙语为星期四),我的代码如下所示:

    fechaevento = Calendar.getInstance();
    beginTime ="Jue 28-05-2016 22:30" 
    final SimpleDateFormat sdf = new SimpleDateFormat("EEE dd-MM-yyyy kk:mm");

    btnCalendar.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            try {
                fechaevento.setTime(sdf.parse(beginTime));
                Intent intent = new Intent(Intent.ACTION_INSERT)
                        .setData(CalendarContract.Events.CONTENT_URI)
                        .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, fechaevento.getTimeInMillis())
                        .putExtra(CalendarContract.Events.TITLE, nameEvento.getText().toString())
                        .putExtra(CalendarContract.Events.DESCRIPTION, descriptionEvento.getText().toString());
                startActivity(intent);
            } catch (ParseException e) {
                //e.printStackTrace();
                Log.i("FECHA_M", e.getMessage());
            }
        }
    });

当我尝试 运行 时,我收到错误消息:无法解析的日期:"Jue 28-05-2016 22:30"(偏移量为 0)

将西班牙语语言环境传递给您的日期格式化程序:

final SimpleDateFormat sdf = 
    new SimpleDateFormat("EEE dd-MM-yyyy kk:mm", new Locale("es"));