I suppose that django should do this. In documentation are mentioned some constants, which are present in django/conf/locale/en/LC_MESSAGES/django.po : DATE_FORMAT, DATETIME_FORMAT and others.
How can I use it in python and template code? On 11/10/2007, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Take a look at babel (http://babel.edgewall.org/). Not all formats are > implemented, byt chances are, that you'd get something more if > standard date filter is not enough. > > On 11 Paź, 10:19, "Michal Konvalinka" <[EMAIL PROTECTED]> > wrote: > > Hi, > > I couldn't find anything about formatting a date according to locale. > > > > I have four languages in my settings.py, I use language switcher and > > everything works fine. I have a date, for example > > date_of_birth = models.DateField(null=True, blank=True) > > in my model and I don't know how to format it according to selected locale. > > > > Thanks for any hint. > > Michal > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

