Changes the range check to allow minYear and maxYear to be the same

I think it should be possible to use the same year for min and max year targets. If I want to, say, select dates of 2014 this would be the only way to do this. Thus I chnages this one line to allow to do so.