Hi i have an issue with ie not displaying my javascript, im a little puzzled as it works fine in google chrome., i have tried f12 debugging and enabled javascript but not with any luck so any help would be much appreciated. In chrome it shows correct amount of days and in ie it just says NaN.
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference+=" days"
document.write("<span style=\"color:#A4A4A4;font-size: 3em; \"> It\'s been "+difference+" since the last incident.<\/span>")
}
//enter the count up date using the format year/month/day
countup('<?php echo $date1; ?>')