title: How to append all values from a field into an empty list in Python using search cursor
body: <p>I am a beginner to Python trying to append all of the values from the YYYYMMDD field to an empty list.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>Date_list = [ ] 
  
  rows = arcpy.da.SearchCursor(path + 'myfile.shp', ['YYYYMMDD'])
  
  for r in rows:
      Date_list.append(r.getValue("YYYYMMDD"))
  </code></pre>
  
  <p>When I run it, I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:\Users\owner\Documents\Project\work.py", line 102, in &lt;module&gt;
  Date_list.append(rows.getValue("YYYYMMDD"))
  AttributeError: 'da.SearchCursor' object has no attribute 'getValue'
  </code></pre>
  
  <p>How else could I potentially append all of the date values into my empty list?</p>