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'm currently using \date{\today} to put the current date at the top of my document. However, I would like the date to read "Friday, May 13, 2011" instead of just "May 13, 2011". Is there a command to get the name of the current day of the week or something else I could use to do that?

Edit

Looks like the real problem I was having was that MikTeX was set to "ask me first" before downloading missing packages. Apparently that setting doesn't work correctly in the version I have, so it was failing to download the datetime package. I had to set it to download without asking to get it to work.

This solution also works, assuming the datetime package is actually installed:

\documentclass{minimal}
\usepackage{datetime}
\begin{document}
Today is \dayofweekname{\day}{\month}{\year}.
May 11, 2011 was \dayofweekname{11}{5}{2011}.    
\end{document}
share|improve this question

2 Answers 2

up vote 14 down vote accepted
\documentclass{minimal}
\usepackage{datenumber}
\begin{document}
\datedayname
\end{document}

See the datenumber package documentation for more details.

share|improve this answer

In ConTeXt you can use

\currentdate[weekday]

To get the output that you want:

\currentdate[weekday,{, },month,{ },day,{, },year]
share|improve this answer

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.