How to ignore the time while converting string to date?
<p>I want to convert '2011-10-13' to a date object representing the same. I use strptime but it includes the time, which I dont need. How to best avoid this?</p>

<p>d = datetime.datetime.strptime("2011-10-13", "%Y-%m-%d") </p>

<p>print d</p>

<p>2011-10-13 00:00:00</p>
