fixed #218: dates not loading correctly in IE7 and IE8
Merge pull request #242 from jroo/NaN_fix

fixed #218: dates not loading correctly in IE7 and IE8