LaTeX forum ⇒ GeneralUppercase months in “datetime”

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 15
Joined: Sat Dec 15, 2018 3:46 pm

Uppercase months in “datetime”

Postby comandos » Mon Aug 19, 2019 1:45 pm

I’m trying to type out the current month + year both in uppercase.
My current solution works like this:
1) Using “datetime” I call for the current month+year then
2) To make them uppercase I use “a custom” macro that replaces “month name” with my uppercase version

Here is a basic example of calling month and year together:

	\monthname[\THEMONTH] \THEYEAR}


\MakeUppercase{\monthyeardate\today}  %not working :/


And here is the custom macro I use:
%%%%%%%%%month’s uppercase  %%%%%%%%%
		{Invalid Month number \the\@orgargctr}%
		{Month numbers should go from 1 (JANUAR) to 12 (DECEMBER)}%
		\or JANUAR \or FEBRUAR \or MAREC \or APRIL \or MAJ \or JUNIJ \or JULIJ %
		{Invalid Month number \the\@orgargctr}%
		{Month numbers should go from 1 (JANUAR) to 12 (DECEMBER)}%

Together they work but is there a better way/correct way of achieving the desired effect?
Best regards

Return to “General”

Who is online

Users browsing this forum: No registered users and 11 guests