As datetime
is superseded by datetime2
, I'm struggling hard to achieve the following using the new package:
In an English document, I would like to show the current date (\today
) once like this 20th December 2017 and once like this 2017-12-20.
According to the documentation, I get it right only one way globally for the whole document. I didn't find a simple example showing me how to get this done.
The answer given at https://tex.stackexchange.com/a/250057 fiddles with \@dtm@month
etc. Is it that hard? It should be simple 🙄
\@dtm@month
indatetime2
. The second method in the answer you linked to fits the design ofdatetime2
. The first method may just as well use\month
and\the\year
.