valid object needs to be converted to a date for comparison