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

I am writing a report in which i need to write date and time in the footer. How do I write date and time in footer?


      Jan 8, 2013 5:45 PM
share|improve this question
Thanks for accepting my answer, I'm glad it was helpful. Looking at your profile, I see that you have asked 31 questions, but you have never cast a single up-vote. Up-voting is the currency of the site, and you should try to up-vote any answers that you find helpful- please see tex.stackexchange.com/faq#howtoask for further information. – cmhughes Jan 11 '13 at 16:37
up vote 9 down vote accepted

You can use the fancyhdr and datetime package to help with this, as demonstrated in the following MWE.

Note that \today is actually defined in LaTeX (no extra packages needed), but you need datetime for \currenttime


\fancyfoot[L]{\today\ \currenttime}




The fancyhf command clears the header and the footer, and the fancyfoot command does the specific part of your question. Setting the pagestyle as fancy seals the deal.

share|improve this answer

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.