If you're using the built-in Python date class, you should be able to do something like this:
TheDate = datetime.date(2003, 9, 24)
TheDate.day += 1
It doesn't work for me (python 2.3) (I thnk there's no module like
datetime in python2.2):
TypeError: attribute 'day' of 'datetime.date' objects is not writable
and the result of
TheDate.day + 10
is
34
I don't think that's what greg wanted.
I've just run into the same problem, I'm reading right now the
documentation but I can't find an easy way to add a number of days to a
date...
and I think that's not the right mailng list to ask to: it has nothing
to do with wxPython. (that doesn't mean that I wouldn't help if I had
the answer...)
-fc
ยทยทยท
Il mer, 2003-09-24 alle 14:40, Jeremiah McElroy ha scritto:
-----Original Message-----
From: Greg Binns [mailto:gregbin@bigpond.net.au]
Sent: Wed 9/24/2003 7:48 AM
To: wxPython-users@lists.wxwindows.org
Cc:
Subject: [wxPython-users] Date
Hi
My questions may be dumb but the answers are not.
I guess this is simple but the docs are somewhat arcane, to me anyway.
How do I add one day to a date in format YYYY-MM-DD.
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
______________________________________________________________________---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org