Date comparison code fixes