convert custom date string to date object
<p>How can I convert a string representation of a date to a real javascript date object?</p>

<p>the date has the following format</p>

<pre><code>E MMM dd HH:mm:ss Z yyyy
</code></pre>

<p>e.g.</p>

<pre><code>Sat Jun 30 00:00:00 CEST 2012
</code></pre>

<p>Thanks in advance</p>

<p>EDIT:
My working solution is based on the accepted answer. To get it work in IE8, you have to replace the month part (e.g. Jun) with the months number (e.g. 5 for June, because January is 0)</p>
