Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-19 Thread Adi Sieker
On 18.03.2009, at 20:48, MarcoS wrote: > > Thanks for your replies, Koeb and Ady. > > Ady, if I understood I've to place the code from > > http://code.djangoproject.com/attachment/ticket/3672/ticket%233672--patch-test.diff > > to > > - python/site-packages/django/forms/forms.py and > -

Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-18 Thread MarcoS
Thanks for your replies, Koeb and Ady. Ady, if I understood I've to place the code from http://code.djangoproject.com/attachment/ticket/3672/ticket%233672--patch-test.diff to - python/site-packages/django/forms/forms.py and - python/site-packages/django/forms/widgets.py and then I call the

Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-18 Thread Adi Sieker
Hi, On 18.03.2009, at 13:01, MarcoS wrote: > > Hi Adi, thanks for your reply! > > I had just tried the DateField.input_formats, but the problem was that > I'm using the date admin widgets. > If I specify input_formats like: '%d.%m.%y', I can't use the admin > widgets 'cause it insert the date in

Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-18 Thread koenb
On 18 mrt, 13:01, MarcoS wrote: > Hi Adi, thanks for your reply! > > I had just tried the DateField.input_formats, but the problem was that > I'm using the date admin widgets. > If I specify input_formats like: '%d.%m.%y', I can't use the admin > widgets 'cause it insert

Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-18 Thread MarcoS
Hi Adi, thanks for your reply! I had just tried the DateField.input_formats, but the problem was that I'm using the date admin widgets. If I specify input_formats like: '%d.%m.%y', I can't use the admin widgets 'cause it insert the date in the format: '%Y-%m-%d' (how you can see in

Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-18 Thread Adi Sieker
Hi, On 18.03.2009, at 11:43, MarcoS wrote: > > Hi all, > I'm implementing a form in django with a DateField field in forms.py. > My purpose is to allow a user to insert a date in european format (dd/ > mm/) and then, obviously, convert it in the /mm/dd format to > let's django check if

Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-18 Thread MarcoS
Hi all, I'm implementing a form in django with a DateField field in forms.py. My purpose is to allow a user to insert a date in european format (dd/ mm/) and then, obviously, convert it in the /mm/dd format to let's django check if it's a valid date and save it in a db. currently I've a