title: Troubleshooting 'ValueError: time data ... does not match format' when using datetime.strptime
body: <p>My input string is <code>'16-MAR-2010 03:37:04'</code> and i want to store it as datetime. </p>
  
  <p>I am trying to use: </p>
  
  <pre><code>db_inst.HB_Create_Ship_Date = datetime.strptime(fields[7]," %d-%b-%Y %H:%M:%S ") 
  fields[7] = '16-MAR-2010 03:37:04' 
  </code></pre>
  
  <p>I am getting an error:</p>
  
  <pre><code>::ValueError: time data '16-MAR-2010 03:37:04' does not match format ' %d-%b-%Y %H:%M:%S ' 
  </code></pre>