Incorrect method used for DateTime comparison