Fix Date comparisons in Memory adapter