Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
share|improve this question
    
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
add comment

migrated from stackoverflow.com May 16 '13 at 18:31

This question came from our site for professional and enthusiast programmers.

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

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.