Get date in the 17-05-2012 format
<p>im stuck at a problem here im getting the date in the following format</p>

<pre><code>Wed May 16 2012 10:22:39 GMT+0500 
</code></pre>

<p>i have tried </p>

<pre><code>.toString('dd-MM-yyy');
</code></pre>

<p>but to no avail how can i parse the given format into the required one.</p>
