formate date in javascript
<pre><code>var mydate = new Date();
var theyear = mydate.getFullYear();
var themonth = mydate.getMonth() + 1;
var thetoday = mydate.getDate();

txtbox.value="04-Jul-2012"
</code></pre>

<p>I have to convert todays date and txtbox date in "04/07/2012" format  how i do it.</p>

<p>I have to compare todays date with txtbox date.</p>

<p>Thanks</p>
