Thursday, October 2, 2014

Re: Force date and time formats to ISO

Den 01/10/2014 kl. 14.59 skrev Mike Dewhirst <miked@dewhirst.com.au>:

> On 1/10/2014 10:35 PM, Collin Anderson wrote:
>> I wonder if it's possible to somehow use a custom locale that will
>> always show ISO dates.
>
> I believe some of the Scandinavian countries use ISO natively ...

Except the OP probably doesn't want our monetary and numeric formats. Have a look at custom format files (https://docs.djangoproject.com/en/1.7/topics/i18n/formatting/#creating-custom-format-files) to override the DATE_FORMAT and DATETIME_FORMAT settings (https://docs.djangoproject.com/en/1.7/ref/settings/#std:setting-DATE_FORMAT).

Erik

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CDC7A15D-1F4B-4917-A6B8-E84A5D519877%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment