getDay() in Javascript Error
<p>Can anybody shed some light on getDay() in Javascript please.
Here datepicker is textbox where it gets value from Jquery DatePicker Control</p>

<pre><code>var CallbackDateNumber;
// check for the value in Date of callback control
if(("#datepicker")!="")
{
    CallbackDateNumber = new Date($("#datepicker").val()).getDay();
}
else
{
    CallbackDateNumber=new Date().getDay();
}
</code></pre>

<p>For January Date its gives 0,1...6- From Sunday to Saturday.</p>

<p>But the same order is not preserved in Month Febraury.</p>

<p>Any reason why this happening?</p>
