[Zope] turn string into date

Steffen Hausmann Steffen@Hausmann-family.de
Thu, 24 Jan 2002 15:20:36 +0100


Hi,

I have a problem with a python script...

I want to know the month of a date.
Therefor I use 'lastDate.strftime( '%m' )'. If I catch the date with 
'lastDate = DateTime()' everything works fine, but if I define it 
manually ( 'lastDatee = 2002/01/18 21:34:18.4746 GMT+1' ), I am getting 
an attribute error:

Error Type: AttributeError
Error Value: strftime

How can I turn the string into a date, so that strftime works again?

MfG Steffen
-- 
Es gibt keine perfekten Menschen, nur perfekte Absichten.