Changing compare date method