Django and strftime best practices

97 Views Asked by At

Could someone please comment on best practices regarding formatting dates in Django?

More specifically I am trying to get the current day (Monday, Tuesday,...) translated in the current active language in Django.

Using x.strftime('%A') always yields the day in English, which may not be the current language in Django.

Thanks x.

1

There are 1 best solutions below

0
On

The solution:

from django.utils.formats import date_format