Using ISO date format in letter class

David Carlisle d.p.carlisle at gmail.com
Mon Jul 11 23:55:01 CEST 2022


`\renewcommand` not `\newcommad`

David


On Mon, 11 Jul 2022 at 22:49, Haines Brown <haines at histomat.net> wrote:

> I have a lualatex document that uses the letter class. I find that
> this class automatically inserts the state to the right following the
> senders' mame and addrress.
>
> The date is displayed default with the format July 11, 2022.
>
> I prefer the date be closer to the ISO standard. I want it to be like
> the output of
>
>   \def\mydate{\leavevmode\hbox{\the\year.\twodigits\month.\twodigits\day}}
>   \def\twodigits#1{\ifnum#1<10 0\fi\the#1}
>
>   which is 2022.07.11
>
> I tried placing \newcommand*\today{\number\year.\number\month.\number\day}
> into the preamble, but lualatex complains that \today haa already
> been defined.
>
> Haine Brown
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20220711/c05a1b73/attachment.html>


More information about the texhax mailing list.