title: How to compare two dates in python
body: <p>I have 2 dates I want the no of days between the 2 dates how to retrieve that</p>
  <pre><code>expiry_date = details['expires']
  today = date.today().strftime(&quot;%d/%m/%Y&quot;)
  </code></pre>
  <p>For example</p>
  <pre><code>28/11/2021
  29/11/2021
  no.of.days=1
  </code></pre>