4

I want to insert two dates into my article class TeX file: first draft date and current draft date, how can I achieve that?

In most examples that I see in pdf form, it centers on the page the following:

First Draft: Date
Current Draft: Date
  • How do you define "draft"? Last time it was saved? Compiled? – aclear16 May 16 '13 at 15:55
  • Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner May 16 '13 at 18:38
3

I would suggest hard-coding the never-changing "first draft" date and using \today for the "current draft":

enter image description here

\documentclass{article}
\usepackage[UKenglish]{isodate}% http://ctan.org/pkg/isodate
\begin{document}
First draft: \printdate{1.1.2013} \par
Current draft: \today
\end{document}

Different date formatting options are available. See the isodate package documentation for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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