code: def format_date(cls, timestamp):
          
          if not timestamp:
              raise DateTimeFormatterException('timestamp must a valid string {}'.format(timestamp))
  
          return timestamp.strftime(cls.DATE_FORMAT)
docs: Creates a string representing the date information provided by the
          given `timestamp` object.