java script problem
-
Var startdate=new Date(getElem("ctl00_ContentPlaceHolder1_txtEndTime").value); i am capturing date from field in to stratdate variable but when i am debugging the value NaN is storing in startdate variable ! i donr even know what is NaN .. why it is not storing date ?? can any one help me in this ....
-
Var startdate=new Date(getElem("ctl00_ContentPlaceHolder1_txtEndTime").value); i am capturing date from field in to stratdate variable but when i am debugging the value NaN is storing in startdate variable ! i donr even know what is NaN .. why it is not storing date ?? can any one help me in this ....
-
i donr even know what is NaN NaN stands for not a number. You need to see whether the name you are passing is correct.
Ahsan Ullah Senior Software Engineer
i am able to get date in the field while debugging but when assigning it to variable it giving value NaN.
-
Var startdate=new Date(getElem("ctl00_ContentPlaceHolder1_txtEndTime").value); i am capturing date from field in to stratdate variable but when i am debugging the value NaN is storing in startdate variable ! i donr even know what is NaN .. why it is not storing date ?? can any one help me in this ....
it means you tried to divide by zero, or otherwise created an invalid value.
rajkumar.3 wrote:
i donr even know what is NaN
I guess you need to buy a javascript book then
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.