Convert Spanish date in string format?
<p>How would I convert a date in string format to compare it with the current time?</p>

<p>I tried this:</p>

<pre><code>import time, datetime

if time.strptime(date.find(text=True), "%a, %d/%m/%Y").now() &gt; datetime.now():
</code></pre>

<p>But I get this error:</p>

<pre class="lang-none prettyprint-override"><code>ValueError: time data u'Dom, 07/02/2016' does not match format '%a, %d/%m/%Y'
</code></pre>

<p>Need advice on how to do this.</p>