title: Code to check for expiration date, from one python scripts output
body: <p>I have a pre made Python script that calls a C# script within an address server. The output of this script is: </p>
  
  <pre class="lang-none prettyprint-override"><code>Build Number            : 2381
  Database Date           : 2015-07-15
  Database Expiration Date: 10-31-2015
  License Expiration Date : 2016-05-03
  
  
  Build Number            : 2381
  Database Date           : 2015-06-15
  Database Expiration Date: 2015-12-15
  License Expiration Date : 2016-05-03
  </code></pre>
  
  <p>I want to be able to check today's date against the "License Expiration Date". I've looked over datetime and I am stumped. I know I can't check a date against an integer, but I just cant get it. This is what I have so far.</p>
  
  <pre><code>import time
  print (time.strftime("%Y-%m-%d"))
  
  datet = '2015-12-15'
  
  class Timedelta(object):
      @property
      def isoformat(self):
             return str()
  
  ExpirationDate = time.strftime("%Y-%m-%d")
  if ExpirationDate &gt;= datet:
      print 'Renew License Soon'
  elif ExpirationDate == datet:
      print 'Renew License Immediately'
  else:
      print "License OK"
      quit()
  </code></pre>