fix getyear to work in ie