I have this string I want to convert to a java Date
object:
"Mon Jun 12 2017 21:00:15 GMT+0200 (W. Europe Summer Time)"
The first thing I do is splitting the string before the first '(' then removing any trailing spaces so I'm left with:
"Mon Jun 12 2017 21:00:15 GMT+0200"
Right now I'm trying to parse it using the following SimpleDateFormat
pattern:
"E M d y H:m:s 'GMT'Z"
Unfortunately that won't work. I tried a few variations but nothing will work. Is it even possible to convert that particular string to a Date?