title: How to convert time / date with jquery/javascript?
body: <p>I currently have this</p>
  
  <pre><code>last_modified = xhr.getResponseHeader('Last-Modified');
  
  /* Last-Modified: Wed, 06 Apr 2011 20:47:09 GMT */
  </code></pre>
  
  <p>However, for the <a href="http://timeago.yarp.com/" rel="nofollow">timeago</a> plugin i need this format</p>
  
  <pre><code>&lt;abbr class="timeago" title="2008-07-17T09:24:17Z"&gt;July 17, 2008&lt;/abbr&gt;
  </code></pre>
  
  <p>What would be the most easy and bulletproof way to convert?</p>