fix date parsing for IE8