title: Converting String to datetime Python
body: <p>How would I convert the string <code>2014-05-19</code> to a datetime object in <code>Python</code> if I'm reading it from a <code>csv</code> file? Currently when I specify dtype=None, it reads in <code>2014-05-19</code> as a string, not a datetime.</p>
  
  <pre><code>import numpy as np
  import datetime
  
  np.genfromtxt(inputFile, dtype=None,delimiter=' ')
  </code></pre>
  
  <p><strong>File</strong></p>
  
  <pre><code>2014-05-19 10
  2014-05-20 11
  2014-05-21 12
  2014-05-22 13.29
  2014-05-23 12.1
  </code></pre>
  
  <p>where the number after the string is a value associated with the date but not included in the <code>datetime</code> object</p>
  
  <pre><code>dataPoints = np.loadtxt(inputFile, dtype=None,delimiter=' ', converters = {0: datetime.datetime.strptime('%Y-%m-%d')})
  </code></pre>
  
  <p>I receive the following message: <code>TypeError: strptime() takes exactly 2 arguments (1 given)</code> </p>
  
  <p>how do I specify the format without actually stripping the string?</p>