Hi All,

I am trying to add the '%d-%m-%Y' format in DateTimefield. As django
does not support this format so when I add different date formats, it
gives "invalid date/time" error in django console.This error occurs
because the form is not valid(form.is_valid()) as above mentioned date
format is not supported by django. Also, I want to store this date in
the mysql database.

I have tried following:
I have converted the string (date entered in html page) in to the date
object which is in '%d-%m-%Y' in views.py before form_is_valid()
called. Now I am not able to set the attribute value for a particular
field so that form.is_valid() gets the correct date object.

Any Ideas for this issue ?

--~--~---------~--~----~------------~-------~--~----~
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