code: def date(value):
      
      if isinstance(value, str):
          value = to_date(value)
      return literal(value, type=dt.date)
docs: Returns a date literal if value is likely coercible to a date
  
      Parameters
      ----------
      value : date value as string
  
      Returns
      --------
      result : TimeScalar