You can do do something like this:
date = date.today()
while date.day != 20:
date += timedelta(1)
~Jakob
On 18 Apr., 21:57, Alfonso wrote:
> Hi,
>
> I'd like to set the default date of a datefield to be 'the 20th of the
> current month', if past that date the date should be set to the 20th
Hi,
I'd like to set the default date of a datefield to be 'the 20th of the
current month', if past that date the date should be set to the 20th
of the following month.
So if a record is created on 1st April the datefield would be 20th
April 2009, if record is created on 21st April then the datef
2 matches
Mail list logo