title: How to convert string into datetime in Python
body: <p>i have concatenated </p>
  
  <pre><code>date(date field)
  time(float)
  date_time_to(Char)
  </code></pre>
  
  <p>i am getting output in this format <code>"2018-10-09 20.00"</code>.</p>
  
  <p>I need output in this format <code>'%m/%d/%Y %H:%M:%S'</code></p>
  
  <p>I used <code>"obj.date_time_to = datetime.strptime(self.date_time_to, "%m/%d/%Y %H:%M:%S.%f")"</code></p>
  
  <p>i am getting </p>
  
  <pre><code>ValueError: time data '2018-10-09 20.00' does not match format '%m/%d/%Y %H:%M:%S.%f'
  </code></pre>