I have a multilingual site and I'd like to get some date in the
current language. With date.strftime, I get the date in english
only...
The language is set by "/i18n/setlang/".
How can I do that?
thanks
jul
For simple formatting, you could just do what the "date" template filter does:
from django.utils.dateformat import format
format(value, format_string)
This uses a slightly different format-string syntax than strftime, but
it is locale-aware and so will translate month and day names for you
in the process.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."