Fixed a date parsing issue on IE