Updated date parsing to fix FF/IE issue