TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

I am building a fairly complex letter template as article-extending class, which needs to be able to understand two languages (English and German). This is implemented via babel (with both ngerman and english as package options) and \DeclareOption, which uses \selectlanguage to determine which one.

Currently, I use datetime and \today to set the date, but that requires to load babel BEFORE datetime (source). What is the correct way to do this?

I could imagine the following, but don't know how to do any of these:

  • reload babel so that it updates the dateformat AFTER language option has been processed

  • specifiy the language for datetime (or use another package that supports this)

  • do it manually via ifthenelse (I can do that, but there has to be a more elegant way?)

Thanks for your input!

Minimal Non-Working Example:

\usepackage[english, ngerman]{babel}

% date formatting magic here please %
share|improve this question

For the time being, I decided to settle with the following (this thing needs to work after all), but if somebody knows a more elegant solution, I would be happy to hear it!

    }{ % german
    }{ % english
share|improve this answer

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.