sanitizes dates