Get the date comparison working