title: how to compare date from get request to date.now?
body: <pre><code>for count in json_data['data']:
      exp = str(count['expires_on'])
      print(exp)
  </code></pre>
  <p>I have this piece of code that print me exp(date in format 2022-05-11). I need to create an <code>if</code> condition that compares these dates from get request with current date -30 days. I'm new in Python and try many ways, may anyone help?</p>