Yes. Thanks, Adi. This works puffikly:
class valForm(forms.Form):
...
...
dt = forms.DateField(input_formats=('%d.%m.%Y',))
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
n00m wrote:
> Hi there!
> Newform validates "22.11.2005" as an invalid date.
> It requires the US format "2005-11-22". Where and to what this date
format should be set
> for to validate "22.11.2005" as an Ok date string? I tried fiddling
with DATE_FORMAT = 'd, m, Y'
> in settings.py, with
Hi there!
Newform validates "22.11.2005" as an invalid date.
It requires the US format "2005-11-22". Where and to what this date format
should be set
for to validate "22.11.2005" as an Ok date string? I tried fiddling with
DATE_FORMAT = 'd,
m, Y'
in settings.py, with no avail.
Cheers!
3 matches
Mail list logo