title: How to change date format in JavaScript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1056728/formatting-a-date-in-javascript">Formatting a date in javascript</a>  </p>
  </blockquote>
  
  
  
  <p>I have this: </p>
  
  <h3>HTML</h3>
  
  <pre><code>Start Date:  &lt;input type="date" id="startDate" name="startDate" &gt;&lt;/p&gt;
  </code></pre>
  
  <h3>JavaScript</h3>
  
  <pre><code>var  mydate = new Date(form.startDate.value);
  </code></pre>
  
  <p>After that mydate becomes</p>
  
  <pre><code>"05/05/2010"
  </code></pre>
  
  <p>Now, I want to change this format to </p>
  
  <pre><code>May 2010
  </code></pre>
  
  <p>Is there a way of doing it in JavaScript?</p>