docs: def _datetime_to_date(arg):
      """
      convert datetime/str to date
      :param arg:
      :return:
      """
      _arg = parse(arg)
      if isinstance(_arg, datetime.datetime):
          _arg = _arg.date()
      return _arg