You can format your python date in template using date<http://docs.djangoproject.com/en/1.3/ref/templates/builtins/#date>filter. Also your default date format depends on your current locale. And you can change your date format in settings.py by setting DATE_FORMAT<http://docs.djangoproject.com/en/1.3/ref/settings/#date-format>
<http://docs.djangoproject.com/en/1.3/ref/settings/#date-format>From another side, you can load appropriate locale file to modify your datepicker's default date format for your country standard. That is my settings for russian dates. <script type="text/javascript" src=" https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js "></script> <script type="text/javascript" src=" https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/i18n/jquery.ui.datepicker-ru.min.js "></script> And if you want your datepicker be custom formatted, then you can configure it separately. $('#id_date').datepicker({dateFormat: 'yy-mm-dd'}); On Mon, May 9, 2011 at 10:54 AM, Sithembewena Lloyd Dube <zebr...@gmail.com>wrote: > Hi all, > > I am using a jquery datepicker control on a page of mine, and it formats > the date different than the django admin datepicker. (MM-DD-YYY). > > If I have a date in that format, how can I format it to DD-MM-YYYY? I have > tried using strftime with no success. > > -- 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.