1

I'm trying to change the language in the datenumber package as described in the manual on page 3. Unfortunately datenumber doesn't hook into the babel translation but comes with its own translation mechanism. I tried to provide the datenumberngerman.ldf file but this doesn't solve the issue. I also tried german vs. ngerman.

mwe:

\documentclass{article}

\usepackage{datenumber}
%\input{datenumberngerman.ldf}
\dateselectlanguage{ngerman}

\begin{document}

\setdate{2002}{1}{1}%
\thedatenumber
%Ergebnis: 73780

\setdatetoday\addtocounter{datenumber}{10}%
\setdatebynumber{\thedatenumber}%
\dateselectlanguage{ngerman}
In 10 Tagen ist der \datedate

\end{document}
3
  • 1
    datenumber is a very old package by now and has no updates since 2001. Most likely, you should switch to datetime2, which has babel language support. Try \usepackage[german]{datenumber} -- that works for me
    – user31729
    Feb 2, 2019 at 17:45
  • @ChristianHupfer That works! If you'd like, make that into an answer, I'll accept it, if not I will write the answer myself.
    – Max N
    Feb 2, 2019 at 20:20
  • 1
    Go on ... I am no rep hunter and I don't need to answer any question I encounter here. Happy TeXing! But I think datetime2 is the better way to go for your problem...
    – user31729
    Feb 2, 2019 at 20:22

1 Answer 1

1

Using the switch \usepackage[german]{datenumber} will change the format to German. For an alternative to datenumber which is last updated 2001, see datetime2. Kudos to Christian Hupfer for the comment.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .