if (req.body.dateFrom) {
    set.dateFrom = new Date(req.body.dateFrom);
  } else {
    unset.dateFrom = '';
  }