Add a month
novin01 at gmail.com
novin01 at gmail.com
Fri Feb 17 05:52:20 EST 2006
Hi, this is probably a really simple question but...
How do you add a month to a datetime date in python? It would be nice
if you could do something like:
d = datetime.date(2006,2,17)
dm = datetime.timedelta(months=1)
d_new = d + dm
but timedelta doesn't have a 'months' setting. Am I missing some easy
method or do I have to code a work around myself??
Thanks in advance for the help!
More information about the Python-list
mailing list