0

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.

tdma
  • 182
  • 1
  • 12

1 Answers1

0

The solution:

from django.utils.formats import date_format

tdma
  • 182
  • 1
  • 12