Add function for handling date strings in IE8