javascript date nan issue in IE

by Ramya 2012-09-01 11:14:14

javascript date nan issue in IE

you may get "nan" issue in ie while using javascript new Date() as,
var getDate = new Date(month,1,year);


to solve this, just use parseInt in Date() as,
var startDate = new Date(parseInt(month),parseInt(1),parseInt(year));



Razz
Razz
Razz
Razz
1523
like
0
dislike
0
mail
flag

You must LOGIN to add comments