Fix Date parsing error in IE and FF