title: Error in the date time format in Python
body: <p>My Python code is showing an error in the date time format. What should be the correct format for this type of date: '09-Jul-11 12:00:00 AM'?
  The date is taken as a string from a text file.
  This is the code I used for date and time.</p>
  
  <pre><code>date=datetime.datetime.strptime(date, "%d-%B-%y %H:%M:%S %p")
  </code></pre>
  
  <p>This was the error I got.</p>
  
  <pre><code>ValueError: time data '09-Jul-11 12:00:00 AM' does not match format '%d-%B-%y %H:%M:%S %p'
  </code></pre>
  
  <p>P.S.: I am using Python 3.</p>