I take it you're using a default {{form}} view instead of outputting
your own?
If you output your own, it's as simple as using the |date:"" filter.

On Jul 5, 3:09 pm, Bob Dively <[EMAIL PROTECTED]> wrote:
> I'm trying to use the SelectDateTime widget but I can't figure out how
> to get it to correctly display a value retrieved from a database. For
> example:
>
> client = Client.objects.get(Client_ID=client_id)
> ClientForm = forms.models.form_for_instance(client)
> ClientForm.base_fields['Birth_Dat'].widget = SelectDateWidget()
>
> I've been unable to get the resulting HTML to show anything other than
> 01-Jan-2007 as the date. ("Birth_Dat" with no "e" is correct, btw.)
> Any suggestions would be greatly appreciated, as I'm completely
> baffled.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to