I have a String that contains a date.
I'm trying to do so but it gives me an error.
java.text.ParseException: Unparseable date: "Fri Mar 20 20:44:49 CET 2015" (at offset 0)
at java.text.DateFormat.parse(DateFormat.java:626)
I'm trying this.
String fechaFestivo = c.getString(1);//Fri Mar 20 20:44:49 CET 2015
SimpleDateFormat format = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy");
Date date = format.parse(fechaFestivo);
DateFormat format = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy", Locale.ENGLISH);Fri Mar 20 20:44:49 CET 2015). Are you sure about fechaFestivo string ?