code: def naturalday(value, format='%b %d'):
      
      try:
          value = date(value.year, value.month, value.day)
      except AttributeError:
          # Passed value wasn't date-ish
          return value
      except (OverflowError, ValueError):
          # Date arguments out of range
          return value
      delta = value - date.today()
      if delta.days == 0:
          return _('today')
      elif delta.days == 1:
          return _('tomorrow')
      elif delta.days == -1:
          return _('yesterday')
      return value.strftime(format)
docs: For date values that are tomorrow, today or yesterday compared to
      present day returns representing string. Otherwise, returns a string
      formatted according to ``format``.