I want to have the date of my document with a Month/Year format such as "May 2016". To accomplish this I have followed the instructions in this answer and this article.
This is the code:
\documentclass{article}
\usepackage[catalan]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{datetime}
\newdateformat{monthyeardate}{\monthname[\THEMONTH] \THEYEAR}
\title{Title}
\author{Author}
\date{\monthyeardate\today}
\begin{document}
\maketitle
\end{document}
However, since my document is written in Catalan, when I compile it, the date contains the "de" preposition as you can see in the following picture:
This preposition is completely unnecessary and should not appear, so for instance, the date should read "maig 2016".
The default date construction is: "15 de maig de 2016", see how the number 15 and the right-hand side "de" preposition are correctly removed, but not the left-hand side "de".
How can I fix this problem?
\date{maig 2016}
.datetime2
as well, but I can't say whether that's easier to use