[Tex/LaTex] How to get automatic date generated in a LaTeX file

datetime

I tried using the datetime package, but it doesn't display the date in the format I want. What I would like is something like August 30, 2015.

How do I do this?

Best Answer

You can use the datetime2 package:

\documentclass[english]{article}
\usepackage{babel}
\usepackage[useregional]{datetime2}

\begin{document}

\today

\end{document}

enter image description here

With datetime:

\documentclass{article}
\usepackage{datetime}

\newdateformat{monthdayyeardate}{%
  \monthname[\THEMONTH]~\THEDAY, \THEYEAR}

\begin{document}

\monthdayyeardate\today

\end{document}
Related Question