redefine date format in letter environment

Lars Madsen daleif at
Wed Dec 7 15:49:45 CET 2022

erh, you defined it right there in \mydate but your not using it in the redefinition of \today.

So what actually is the problem with the example?

Lars Madsen

Institut for Matematik
Aarhus Universitet at math<>

From: texhax < at> on behalf of Haines Brown <haines at>
Sent: 07 December 2022 14:30
To: texhax at <texhax at>
Subject: redefine date format in letter environment

I want today's date to appear: 2022.21.07 rather than 2022.21.7



\def\twodigits#1{\ifnum#1<10 0\fi\the#1}





     Haines Brown
 \ /  ASCII Ribbon Campaign
  X    against HTML e-mail
 / \

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the texhax mailing list.