code: def date(self, pattern='%Y-%m-%d', end_datetime=None):
          
          return self.date_time(end_datetime=end_datetime).strftime(pattern)
docs: Get a date string between January 1, 1970 and now
          :param pattern format
          :example '2008-11-27'