I am trying convert String to Date but getting this error.
java.text.ParseException: Unparseable date: "Wed Feb 16 20:04:17 EET 2022"
at java.text.DateFormat.parse(DateFormat.java:366)
at com.mycompany.facebookproject.OpenFace.main(OpenFace.java:55)
My code is:
String val= "Wed Feb 16 20:04:19 EET 2022";
expiry=new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy").parse(val);