How to change the date format in Jquery/Javascript?
<p>How to change the date format in Jquery/Javascript?</p>

<p>I've downloaded the 
<a href="https://raw.github.com/vitch/jquery-methods/master/date.js" rel="nofollow">date.js</a>. Then, I follow below example:</p>

<pre><code>var d1 = Date.parse('2010-10-18, 10:06 AM');
alert(d1.toString('dd/mm/yyyy HH:mm:ss GMT'));
</code></pre>

<p>So I write my own code for following date:</p>

<blockquote>
  <p>Thu Jan 31 2013 16:29:30 GMT+0700 (WIT)</p>
</blockquote>

<pre><code>var d1 = Date.parse("Thu Jan 31 2013 16:29:30 GMT+0700 (WIT)");
alert(d1.toString('dd/mm/yyyy'));
</code></pre>

<p>My logcat prints this:</p>

<blockquote>
  <p>CordovaLog(31455): Uncaught RangeError: toString() radix argument must
  be between 2 and 36</p>
</blockquote>

<p>I use Phonegap for my android application.</p>
