This is my date.
Fri, 25 Sep 2015 12:01:16 +0000
The output should look like this.
2015-09-25 12:01:16
This does not work.
SimpleDateFormat sdf = new SimpleDateFormat("E, d M y H:m:s X");
I need it to be converted to mysql date.
I have this error
Exception in thread "main"
java.text.ParseException:Unparseable date: "25 Sep 2015 12:01:16"
at java.text.DateFormat.parse(DateFormat.java:366)
at Main.main(Main.java:27)
sdfafter you define it? How do you convert it tojava.sql.Date? Please show more code.WWW, DD MMM YYYY HH:MM:SS +NNNN" it might be better to useString` manipulation function calledsubstring.