how to convert string to datetime.timedelta()?
<p>how can i convert my string of date to a datetime.timedelta() in python?</p>

<p>I have this code :</p>

<pre><code>import datetime

date_select = '2011-12-1'
delta = datetime.timedelta(days=1)
target_date = date_select + delta
print target_date
</code></pre>

<p>thanks in advance ...</p>
