Re: Calculating future dates

2007-02-01 Thread Ben Finney
"Toine" <[EMAIL PROTECTED]> writes: > On Feb 1, 4:54 pm, "Dan Bishop" <[EMAIL PROTECTED]> wrote: > > str(datetime.date.today() + datetime.timedelta(31)) > > Your example gave me a few errors but I was able to adapt it into > this: > > str(date.today() + timedelta(31)) That only works if you're im

Re: Calculating future dates

2007-02-01 Thread Toine
On Feb 1, 4:54 pm, "Dan Bishop" <[EMAIL PROTECTED]> wrote: > On Feb 1, 6:51 pm, "Toine" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I'm new to Python so please bare with me... > > > I need to calculate a date that is exactly 31 days from the current > > date in -MM-DD format. I know that date

Re: Calculating future dates

2007-02-01 Thread Irmen de Jong
Toine wrote: > Hello, > > I'm new to Python so please bare with me... > > I need to calculate a date that is exactly 31 days from the current > date in -MM-DD format. I know that date.today() returns the > current date, but how can I add 31 days to this result? I'm sure this > task is simple,

Re: Calculating future dates

2007-02-01 Thread Dan Bishop
On Feb 1, 6:51 pm, "Toine" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm new to Python so please bare with me... > > I need to calculate a date that is exactly 31 days from the current > date in -MM-DD format. I know that date.today() returns the > current date, but how can I add 31 days to this

Calculating future dates

2007-02-01 Thread Toine
Hello, I'm new to Python so please bare with me... I need to calculate a date that is exactly 31 days from the current date in -MM-DD format. I know that date.today() returns the current date, but how can I add 31 days to this result? I'm sure this task is simple, but I haven't been able to f