Well, this question is pretty weird 😉 I know TeX is strictly sandboxed, but I guess there is at least some possibility? After all, system clock (for instance, UNIX time on UNIX-like systems) is only 8 bytes or so in memory.
I would be very impressed if retrieving date information in LaTeX is actually possible! 😀 That way I would be able to create such a template that I do not need to adjust the date of each new article…
Best Answer
You mean something like that
??
If you don't need time but need only date, there are counters like
\year
,\month
and\day
.To put current year in text say
\number\year
, to put month number use same construction. To put month name there must be a construction in yourbabel
file like\today
(puts today's date to document) or you can make construction likeThen macro
\monthname
will write current month' name to the document.