Fixed the method to compare two dates