Hi,

perhaps you could create clean_*date in your form,
and change the datefield 10-OCT-09 to 10-10-2009

-djibon-


On 10/16/09, vishak <visha...@gmail.com> wrote:
>
> what you have told is OK but when you enter in datefield 10-OCT-09
> instead of 2009-10-10 it gives error.
>
> On Oct 16, 4:41 pm, Михаил Лукин <mihail.lu...@googlemail.com> wrote:
>> Try thishttp://docs.djangoproject.com/en/dev/ref/settings/#date-format
>>
>>
>>
>> On Fri, Oct 16, 2009 at 2:21 PM, vishak <visha...@gmail.com> wrote:
>>
>> > Hi Django users,
>>
>> >   I have one question in django for which details are given below
>>
>> > 1] The default date format in django is '`2009-10-10' when entered
>> > through frontend (i.e by using models.DateField()).  I manipulated
>> > this behavior to '10-OCT-09'.
>>
>> > 2] Everything is fine upto now, but when i save the data the django
>> > validation error comes saying
>> > "Date format should be YYYY-mm-dd".
>>
>> > Can anyone provide a solution to override this behavior of django and
>> > also explain why django supports only 'yyyy-mm-dd' format.
>>
>> > Thanks in advance
>>
>> > Vishak.V
>>
>> --
>> regards,
>> Mihail
> >
>


-- 
--------------------------------------------------------------
http://www.tumbletooth.org
my linkedin profile : http://www.linkedin.com/in/bayuadji
--------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to