title: How to convert list of string dates to datetime in python
body: <p>I'm trying to convert each element of this list of strings to DateTime. I've extracted these dates from a 'log' file. This list has 1127655 elements like following:</p>
  <pre><code>01/Aug/1995:00:00:01 
  01/Aug/1995:00:00:07 
  01/Aug/1995:00:00:08 
  01/Aug/1995:00:00:08 
  01/Aug/1995:00:00:08 
  01/Aug/1995:00:00:09 
  </code></pre>
  <p>I am trying to convert this list into following format:</p>
  <pre><code>1995-08-01 00:00:09
  </code></pre>
  <p>I tried using this code for a list of 3 elements:</p>
  <pre><code>for item in newdate:
      print(item)
      read = datetime.datetime.strptime(item,'%d/%b/%Y:%H:%M:%S')
      print(read)
  </code></pre>
  <p>It works fine for a couple of elements, but not for the whole list. I am getting this error constantly:</p>
  <pre><code>ValueError: unconverted data remains:
  </code></pre>
  <p>Can anyone explain what this error is and why I'm getting this error?</p>