title: how to get date from datetime format-python
body: <p>how can i extract the date only without the time in same row of my csv files?</p>
  
  <pre><code>import csv
  from datetime import datetime
  with open('mar.csv','rb') as csvfile:
  
      reader=csv.reader(csvfile,delimiter=',')
      reader.next()
      d = datetime(row[35] for row in reader)
      print(d.strftime("%Y %m %d"))
  </code></pre>
  
  <p>Example of the column:</p>
  
  <pre><code>8/9/2014 14:44
  8/9/2014 14:44
  8/12/2014 14:54
  8/12/2014 10:56
  8/9/2014 20:03
  8/12/2014 16:09
  8/12/2014 10:13
  8/12/2014 23:31
  8/13/2014 21:31
  8/12/2014 15:44
  8/12/2014 15:47
  8/11/2014 9:45
  
  
  
  TypeError: an integer is required
  </code></pre>