Re: Newform and validating of date literals

2008-06-10 Thread n00m
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

Re: Newform and validating of date literals

2008-06-08 Thread Adi J. Sieker
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

Newform and validating of date literals

2008-06-08 Thread n00m
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!