title: TypeError: '>' not supported between instances of 'datetime.datetime' and 'str'
body: <p>I am new to python date and time types.</p>
  
  <p>I have a date value.</p>
  
  <pre><code>date = '2018-11-10 10:55:31+00:00'
  </code></pre>
  
  <p>I need to check this date value is older than  90 days. </p>
  
  <p>I tried :</p>
  
  <pre><code>from datetime import datetime
  from datetime import timedelta
  
  past = datetime.now() - timedelta(days=90)
  date = '2018-11-10 10:55:31+00:00'
  
  if past &gt; date :
     print("This is older than 90 days")
  </code></pre>
  
  <p>failing with the following error :<br>
  <code>TypeError: '&gt;' not supported between instances of 'datetime.datetime' and 'str'</code></p>
  
  <p>This might be because the date format for 'past' and the date value which I passed is different. </p>
  
  <p>How  can I come up with this ?</p>