Is there a way to extract the 3 first letters of the current month in French but WITHOUT acented characters AND with the first letter capitalized – e.g. Fev
for Février
(February in english) – AND with 2 exceptions: Juillet = Jul
and Juin = Jun
(the third letter in the abbreviation correspond in reality to the fourth letter of the month for these 2 exceptions)?
So, for all 12 month I would like to obtain the following results: Jan
,Fev
,Mar
,Avr
,Mai
,Jun
,Jul
,Aou
,Sep
,Oct
,Nov
,Dec
.
It would be nice to have something like a \currentMonthAbbreviated
command wich directly output the corresponding abreviation to the current month.
Is there a way to do it with datetime2
package or something else?
Best Answer
The
datetime2
package provides\DTMfrenchshortMonthname
, but defines it byand what you have to do is to redefine it according to your wish:
On the other hand this can be completely independent of
datetime2
. You can define your own commandComplete example: