title: I need to convert datetime to date without seconds in python
body: <p>I need to convert datetime to date without seconds in python, how to execute this:</p>
  
  <pre><code>from datetime import datetime
  dt = datetime.strptime('2016-06-01 16:05:20', '%Y-%m-%d').date()
  print dt
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Traceback (most recent call last):
    File "teste.py", line 5, in &lt;module&gt;
      dt = datetime.strptime('2016-06-01 16:05:20', '%Y-%m-%d').date()
    File "/usr/lib/python2.7/_strptime.py", line 328, in _strptime
      data_string[found.end():])
  ValueError: unconverted data remains:  16:05:20
  </code></pre>
  
  <p>I've tried everything<br>
  Can help?</p>