The date format is wrong when datetime
and datenumber
are used at the same time, datenumber
being loaded after datetime
.
As can be tested with the following MWE:
\documentclass{article}
\usepackage{datetime}
\usepackage[english]{datenumber}
\begin{document}
\section{Package datenumber}
\begin{itemize}
\item \setdate{2015}{1}{21}
\datedate
\item \setdate{2015}{1}{22}
\datedate
\item \setdate{2015}{1}{23}
\datedate
\item \setdate{2015}{1}{31}
\datedate
\end{itemize}
\section{Package datetime}
\begin{itemize}
\item \newdate{21}{21}{1}{2015}
\displaydate{21}
\item \newdate{22}{22}{1}{2015}
\displaydate{22}
\item \newdate{23}{23}{1}{2015}
\displaydate{23}
\item \newdate{31}{31}{1}{2015}
\displaydate{31}
\end{itemize}
\end{document}
when
datenumber
is not loaded,datetime
displays the ordinal for 21, 22, 23 and 31 as 21st, 22nd, 23rd and 31st, as expected with UKenglish;when
datetime
is not loaded,datenumber
displays the ordinal for 21, 22, 23 and 31 as 21st, 22nd, 23rd and 31st, as (almost) expected with UKenglish;when
datenumber
anddatetime
are loaded in this order, the error:! You can't use `the character 2' after \advance. <argument> 2 015 l.9 \item \setdate{2015}{1}{21}
already reported in datetime and datenumber package conflict? arises;
when datetime and datenumber are loaded in this order, the ordinal for 21, 22, 23 and 31 are displayed as:
- 21st, 22nd, 23rd and 31st by datenumber, as (almost) expected with UKenglish;
- 21th, 22th, 23th and 31th by datetime, and that's wrong.