correct date for cross browsers