title: Changing datetime format in Python Language
body: <p>I am parsing emails through Gmail API and have got the following date format:</p>
  
  <pre><code>Sat, 21 Jan 2017 05:08:04 -0800
  </code></pre>
  
  <p>I want to convert it into ISO <code>2017-01-21</code> (yyyy-mm-dd) format for MySQL storage. I am not able to do it through strftime()/strptime() and am missing something. Can someone please help?</p>
  
  <p>TIA</p>