Date Format in Admin

1,493 views
Skip to first unread message

Botolph

unread,
Oct 23, 2008, 7:28:19 PM10/23/08
to Django users
I would like to change the formatting of dates in the admin from YYYY-
MM-DD to DD-MM-YYYY. I have set "DATE_FORMAT" in the settings file,
but that only changes list_display and not the DateField input. In a
post from Januar 2007 Adrian wrote:

> Yes, newforms DateFields let you specify the input format(s). This has
> yet to be integrated into the Django admin, but it will be sooner
> rather than later.

Has this been integrated now? If so, where can I change it? I have
been searching for hours without finding a solution.

Matias Surdi

unread,
Oct 24, 2008, 3:29:19 AM10/24/08
to django...@googlegroups.com

Matias Surdi

unread,
Oct 24, 2008, 3:29:19 AM10/24/08
to django...@googlegroups.com

Botolph

unread,
Oct 25, 2008, 5:55:40 AM10/25/08
to Django users

> http://docs.djangoproject.com/en/dev/ref/settings/#date-format

> > I would like to change the formatting of dates in the admin from YYYY-
> > MM-DD to DD-MM-YYYY. I have set "DATE_FORMAT" in the settings file,
> > but that only changes list_display and not the DateField input.

As I said, that doesnt fix the problem.The "DATE_FORMAT" doesn't
change the date formatting in the input field next to the calendar
widget.
Reply all
Reply to author
Forward
0 new messages