Changing Date format in JavaScript
<pre><code>var dt="29/05/2013"; //DD/MM/YYYY
</code></pre>

<p>I want to convert to yyyy/MM/dd format;</p>

<p>The approach I've used is:</p>

<pre><code>var newdate=dt.getFullYear()+"/"+dt.getMonth()+"/"+dt.getDate();
</code></pre>

<p>Is there any simple approach to convert it with out using substring?</p>

<p>I don't want to use plugins by the way...</p>
