[Tex/LaTex] How to insert 4 digit year that shows up in \today

datetime

Using the LaTeX command \today, I can insert the current date. Is there any way to insert the current year with a simple command? All I want is the simple 4 digit year that shows up in \today.

Best Answer

\the\year{}

Here \year represents a number and \the lets you output it as a text.