On my CV, there is the date at which it was lastly modified… like February 2012 for instance. I’m not a huge fan of Latex, and I’m not a guru in Latex either, in fact I didn’t write the CV class, just grabed it on the internet and modified it the way I wanted it to look like. Recently I had to translate it into french… boring. One part took a little longer than expected : translating the date ! Ok I know February is Février in french… the problem was how to make it automatic ? Like each time you compile your CV, you actually don’t have to modify the date, latex does it for you.
Well that worked well in english, but as soon as I wanted it to write Février 2012 instead of February 2012, I got troubles… So here is the solution I found :
first include the babel package with the french option :
\usepackage[french]{babel}
Then include the datetime package :
\usepackage{datetime}
Then customize your date format. In my case I just want “Février 2012″, i.e. “Month_name year_in_number. The way to do that is :
\newdateformat{mydateformat}{\monthname~\THEYEAR}
and then, where you want to insert your date :
\mydateformat\today
And that’s it !