C
Chermside, Michael
I'm trying to convert a string back into a datetime.date.
First I'll create the string:
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.2005-02-04
Now I convert it back:
datetime.date(2005, 2, 4)
WOW, that's ugly. Is there a more concise way to do this?
-- Michael Chermside
This email may contain confidential or privileged information. If you believe you have received the message in error, please notify the sender and delete the message without copying or disclosing it.
First I'll create the string:
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.2005-02-04
Now I convert it back:
datetime.date(2005, 2, 4)
WOW, that's ugly. Is there a more concise way to do this?
-- Michael Chermside
This email may contain confidential or privileged information. If you believe you have received the message in error, please notify the sender and delete the message without copying or disclosing it.