title: remove date from datetime field python sql
body: <p>I have a field in SQL info1[11] it contain the:</p>
  
  <pre><code>DateTime format like this: 2019-01-31 17:30:00
  </code></pre>
  
  <p>so I wanted to date and time separate so I strip the time like that:</p>
  
  <pre><code>ticket_start_date = str(info1[11])[:10]
  output : 2019-01-31
  </code></pre>
  
  <p>but for the time i am doing this but no luck:</p>
  
  <pre><code> ticket_start_time = str(info1[11][11:])
  </code></pre>
  
  <p>I'm getting this error:</p>
  
  <pre><code>TypeError: 'datetime.datetime' object is not subscriptable
  </code></pre>
  
  <p>Is there any other way to get the time only in this format.
  The convention to write time is 'hh:mm:ss AM/PM' or 'hh:mm:ss'</p>
  
  <p>I am selenium and SQL with python to automate some task</p>