Having trouble parsing a date in my Android app
<p>I'm writing an app which is trying (and failing) to parse a date in the following format: Fri, 22 Jul 2011 04:14:43 -0700</p>

<p>The code I'm using to try and parse it is as follows:</p>

<pre><code>Calendar pubDate = Calendar.getInstance();
pubDate.setTime(new SimpleDateFormat().parse(dateString));
</code></pre>

<p>The exception I'm getting is: </p>

<pre><code> java.text.ParseException: Unparseable date: Fri, 22 Jul 2011 04:14:43 -0700
</code></pre>

<p>I have absolutely no control over the date data or it's format. Any ideas what I'm missing here?</p>
