How do I convert String into Date object

Roy Smith roy at
Sat Aug 13 20:49:06 EDT 2011

In article 
<83822ecb-3643-42c6-a2bf-0187c07d351d at>,
 MrPink <tdsimpson at> wrote:

> Is this the correct way to convert a String into a Date?
> I only have dates and no time.

You have already received a number of good replies, but let me throw out 
one more idea.  If you ever need to do something with dates and times 
which the standard datetime module can't handle, take a look at the 
excellent dateutil module by Gustavo Niemeyer 

More information about the Python-list mailing list