TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using \formatdate from datetime, I can get a date properly formatted in multiple languages:


However, I would like to only use the day and month and leave the year behind. I've tried passing:


but it doesn't work, as it expects a number.

How could I achieve that?

share|improve this question
This is because datetime stores the day/month/year in counters. – Werner Sep 13 '12 at 19:59
up vote 6 down vote accepted

\def\formatdateny{\csname noyear\languagename\expandafter\endcsname\formatdate}
\def\noyearenglish#1, \the\@year{#1}
\def\noyearrussian#1\ \number\@year~\cyrg.{#1}
\def\noyearspanish#1\ de~\number\@year{#1}
% etc.


share|improve this answer
Wonderful, thanks! Just have to mix it with your previous answer to make it expandable ;-) – ℝaphink Sep 13 '12 at 20:02
actually it works for french but not english, update in a bit – David Carlisle Sep 13 '12 at 20:03
Ah, so I'll have to declare all supported languages I guess… – ℝaphink Sep 13 '12 at 20:19
Also, could you explain how it works please? :-) – ℝaphink Sep 13 '12 at 20:21
Oh, I get it now. But English doesn't work for me still. – ℝaphink Sep 13 '12 at 20:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.