title: Inserting python datetime into the mysql table
body: <p>I have a Python date like </p>
  
  <pre><code>2013-04-04T18:56:21Z
  </code></pre>
  
  <p>I want to store this into my mysql database .</p>
  
  <p>I tried like </p>
  
  <pre><code>self.start_at = datetime.strptime(self.start_at.split(".")[0], "%Y-%m-%dT%H:%M:%S")
  </code></pre>
  
  <p>But i am getting an error </p>
  
  <pre><code>ValueError: unconverted data remains: Z
  </code></pre>
  
  <p>PLease tell me how to convert the above date in mysql acceptable format .</p>