Problem in typecasting date in javascript
-
Hi There, I want to know how to typecast date in javscript. I had done as show below but when I assing date to systemDate then it shows value of systemDate as invalid date. Can anybody tell me what is the problem. ---------------------MyCode----------------------- var systemDate1 = document.getElementById('<%=txtFollupDt.TextClientId%>').value; var systemDate=new Date(systemDate1); Thanks,
-
Hi There, I want to know how to typecast date in javscript. I had done as show below but when I assing date to systemDate then it shows value of systemDate as invalid date. Can anybody tell me what is the problem. ---------------------MyCode----------------------- var systemDate1 = document.getElementById('<%=txtFollupDt.TextClientId%>').value; var systemDate=new Date(systemDate1); Thanks,