Q:

How to format date in different languages?

I have a Django project with settings set to lang 'pl', in every template I use localized date format, for example:
{{ item.date|date:'D, d N H:i:s e' }}

result:
    Wt, 13 Lis 2012 22:00:00

But in only one template I must use format for lang 'en':
Thu, 13 Nov 2012 22:00:00 GMT

How can I accomplish this?

A:

This helps for me:
{% load i18n %}

{% language 'en' %}
  {{ item.date|date:'D, d N H:i:s e' }}
{% endlanguage %}

For more details, see the Django online documentation.

