I have a array which contains value 02/21/2012 8:00am
and i get this value from custom created sub-json.
So i'm splitting it using
var date = jsonData.list[i].mydate.split(" ")[0];
console.log(date); //shows 02/21/2012
Even though it splits and shows the value , it throws an error "Unable to get value of the property 'split': object is null or undefined" in IE8 but works fine in IE9, FF.
I also tried
<meta http-equiv="X-UA-Compatible" content="IE=8" />
Nothing seem to work.