Possible Duplicate:
Parse any date in Java
I'm trying to parse a Date-String into a Date in my JSP Template. The problem is, that I don't know how the Date-String will look like because it's loaded from different RSS-Feeds which will not always have the same date format.
For example:
<fmt:parseDate value="Tue, 05 Jun 2012 11:45:47" var="date" pattern="EEE, dd MMM yyyy HH:mm:ss" parseLocale="US" />
will only work for a date having the format "Tue, 05 Jun 2012 11:45:47"...
I would need something more dynamic as the date could also be "05.06.2012 11:45:47 GMT" or something similar.
I also tried leaving the pattern out but it didn't help.