Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Apparent I should set LC_TIME to en_DK (why danish? I don't want danish months!) but nothing I've done manages to change the output of locale.

share|improve this question

What do you want to achieve? To change the format temporarily

$ date
Mon Feb 21 18:46:57 CET 2011
$ LANG=cs_CZ.utf8 date
Po úno 21 18:47:22 CET 2011

or permanently by putting the variables in /etc/default/locale?

share|improve this answer
Permanently, but only the time format (24h), dd-mm-yyyy, not the language, and /etc/default/locale already contains LC_TIME=en_DK.UTF-8 but it doesn't affect the output of locale. – Michiel de Mare Feb 21 '11 at 18:26
But why? The output of LANG=en_DK.utf8 date is the same as of LANG=en_US.utf8 date. Or you want something like date +%d-%m-%Y? – arrange Feb 21 '11 at 19:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.