title: Converting dates in JavaScript
body: <p>How can I convert one date format to another format in JavaScript?</p>
  
  <p>Example:  </p>
  
  <p>the old format is  </p>
  
  <blockquote>
    <p>YYYY/MM/DD  </p>
  </blockquote>
  
  <p>but I want to convert it into</p>
  
  <blockquote>
    <p>DD-MM-YYYY</p>
  </blockquote>