code: def set_published_date(self, date=None):
          
          if date:
              match = re.match(DATE_REGEX, date)
              if not match:
                  raise IOCParseError('Published date is not valid.  Must be in the form YYYY-MM-DDTHH:MM:SS')
          ioc_et.set_root_published_date(self.root, date)
          return True
docs: Set the published date of a IOC to the current date.
          User may specify the date they want to set as well.
  
          :param date: Date value to set the published date to.  This should be in the xsdDate form.
           This defaults to the current date if it is not provided.
           xsdDate Form: YYYY-MM-DDTHH:MM:SS
          :return: True
          :raises: IOCParseError if date format is not valid.