I'm using the datetime
package. How could I have a date format with the month name in capital letters?
\usepackage{datetime}
% some code here
\newdateformat{mifecha}{Bilbao, a \THEDAY~de \monthname[\THEMONTH] de \THEYEAR}
\mifecha\date{\today}
Gives me:
Bilbao, a 15 de noviembre de 2013
But I would like:
Bilbao, a 15 de Noviembre de 2013
I have tried the command \capitalisewords
without success, but maybe it's because I should use a combination of \expandafter
commands or something related.
Best Answer
If you're loading
babel
with thespanish
option, then your months will start in lowercase as this is the definition enforced bybabel
. A redefinition of\monthnamespanish
corrects this:You may also be interested in updating
\dayofweeknameidspanish
and\shortdayofweeknameidspanish
.