i read the data from the rows, at some row cells has multiple date's. im reading these date and stored into an Array, after that i tried to Sort at that time im getting the error as "Microsoft JScript runtime error: Number expected"
actually this is my sort method code
function compareAscName(a, b)
var dateA = new Date(a.DOB);
var dateB = new Date(b.DOB);
return dateB - dateA;
this is the code im calling above code
dataInputArray.sort(compareAscName); when the system reach this code with multiple date in a array parameter then above method not called.
if a = "09/07/2010~10/01/2010" and b= "09/08/2010~10/02/2010" then this time only im getting error,
if a = "09/07/2010" and b= "09/08/2010" then this time its working fine. i knew some thing i have to do on
View Complete Post