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?
like
Jan 8, 2013 5:45 PM
datetimeheader-footer
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?
like
Jan 8, 2013 5:45 PM
Best Answer
You can use the
fancyhdr
anddatetime
package to help with this, as demonstrated in the following MWE.Note that
\today
is actually defined inLaTeX
(no extra packages needed), but you needdatetime
for\currenttime
This generates the following footer.
The
fancyhf
command clears theheader
and thefooter
, and thefancyfoot
command does the specific part of your question. Setting thepagestyle
asfancy
seals the deal.