[Tex/LaTex] Date format in text and address block

datetime

In my generated letter I use \formatdate{\MDay}{\MMonth}{\MYear}. In header I specific \usepackage[nodayofweek,level]{datetime}.

I have got then date like 10th May, 2012, but I would like only 10th May 2012. The same problem is in the address block, where is actual date generate automatically.

How can I check this?

Best Answer

The comma as a separator is actually hardcoded into the various definitions of \formatdate, but you may use the etoolbox package to remove it.

\documentclass{article}

\usepackage[nodayofweek,level]{datetime}

\usepackage{etoolbox}
\patchcmd{\formatdate}{,}{}{}{}

\begin{document}

\today

\end{document}

enter image description here

Related Question