Fixed Date issue for cross browser support