N
novin01
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!
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!