ie compatibility with Date()