Jquery date comparison
<p>Hi iam using the following code for comparing the entered date with current date... But it is not working...</p>

<pre><code>$('#&lt;%=txtOrderDate.ClientID%&gt;').change(function() {
            var date = $('#&lt;%=txtOrderDate.ClientID%&gt;').val();
            var arrDate = date.split("/");
            var today = new Date();
            var useDate = new Date(arrDate[2], arrDate[1] - 1, arrDate[0]);
            if (useDate &gt; today) {
                alert('Please Enter the correctDate');
                $('#&lt;%=txtOrderDate.ClientID%&gt;').val('');
            }
        });
</code></pre>

<p>Help me if anybody knows it... Advance thanks....</p>
