I have this code:
\documentclass{article}
\usepackage[a5paper]{geometry}
\usepackage[ddmmyyyy]{datetime}
\renewcommand{\dateseparator}{.}
\begin{document}
\today
\end{document}
Prints:
How can I make it print this:
07 May, 2013
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityFrom the datetime
manual, you have two solutions:
shortdate
format, which will print "07th may, 2013";\documentclass{article}
\usepackage[a5paper]{geometry}
\usepackage[nodayofweek]{datetime}
\newdateformat{mydate}{\twodigit{\THEDAY}{ }\shortmonthname[\THEMONTH], \THEYEAR}
\begin{document}
\shortdate
\today
\mydate
\today
\end{document}
Here is an humble attempt without having to use any package:
\documentclass{article}
\renewcommand{\today}{\ifnum\number\day<10 0\fi \number\day \space%
\ifcase \month \or January\or February\or March\or April\or May%
\or June\or July\or August\or September\or October\or November\or December\fi,%
\number \year}
\begin{document}
\today
\end{document}