I have a problem to parse my date from string
This is my date
String startedFrom = "Fri,+31+Dec+3999+23:00:00+GMT"
DateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy kk:mm:ss z", Locale.ENGLISH);
Date result = df.parse(startedFrom);
what I am doing wrong?
I get exception
java.text.ParseException: Unparseable date: "Fri,+31+Dec+3999+23:00:00+GMT"
However if the
startedFromvalue is actually an URL encoded parameter added to an URL (as in a HTML form with GET method), then'+'would arrive as space' ', hence your original format would be correct.