Hi,

I'm unsure if and how to use DateFormat from django/utils/
dateformat.py .

I'd like to use a local (Dutch) representation of dates. What I get
is:
u'26th March 2010'

I'd like that to be in Dutch. How do I do that?

Major thanks!

Wim

----
My IPython looks like this:

In [1]: import datetime

In [2]: d = datetime.datetime.now()

In [3]: from django.utils.dateformat import DateFormat

In [4]: df = DateFormat(d)

In [5]: df.format('jS F Y')
Out[5]: u'26th March 2010'

In [6]:

In [7]: import settings

In [8]: settings.USE_L10N
Out[8]: True

In [9]: settings.LANGUAGE_CODE
Out[9]: 'nl'

In [10]: settings.LANGUAGES
Out[10]: (('nl', 'Dutch'),)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to