Javascript change date into format of (dd/mm/yyyy)
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11591854/format-date-to-mm-dd-yyyy-in-javascript">Format date to MM/dd/yyyy in javascript</a>  </p>
</blockquote>



<p>How can I convert the following date format below (Mon Nov 19 13:29:40 2012)</p>

<p>into:</p>

<p>dd/mm/yyyy</p>

<pre><code>&lt;html&gt;

&lt;head&gt;

&lt;script type="text/javascript"&gt;
function test(){
var d = Date()
alert(d)

}

&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;input onclick="test()" type="button" value="test" name="test"&gt;

&lt;/body&gt;

&lt;/html&gt;
</code></pre>
