title: How can I convert this a unix timestamp in Javascript into this date format?
body: <p>I currently have a date which is formatted in PHP like this <code>date('D d F g:i A Y', $l2['available'])</code> which outputs a date in this format: <code>Tue 15 May 5:45 PM 2012</code></p>
  
  <p>I want to achieve this same format in Javascript/jQuery.</p>
  
  <p>So far I've done this:</p>
  
  <pre><code>var lessonTime = new Date(data.lessons[i].available * 1000);
  lessonTime.toDateString();  
  </code></pre>
  
  <p>which results in the date below:</p>
  
  <pre><code>Thu Mar 22 2012
  </code></pre>
  
  <p>Is there a way to control the format like you can with PHP date function?</p>