Javascript date Variable
<pre><code>var dt1=new Date("2013/05/25"); //yyyy/MM/dd
var dt2=new Date("2013/05/24");

if(dt1&gt;dt2)
{
    alert("invalid Date!");  
}
</code></pre>

<p>This code is working in all Browsers..</p>

<p>But if we select:</p>

<pre><code>var dt1=new Date("25/05/2013"); //dd/MM/yyyy
var dt2=new Date("24/05/2013");

if(dt1&gt;dt2)
{
    alert("invalid Date!");  
}
</code></pre>

<p>This code is not working in all the browsers? Why?
Is there any specifc date format that should be accepted by all the browsers? Is there any standard for DateTime as well? Thank you........</p>
