Sample Header Ad - 728x90

Inserting the date in groff

1 vote
2 answers
613 views
How can I insert today's date in groff? I know I can type today's date directly, but I would like the date to dynamically be produced, so that a document could be recompiled with a new date without any change to the groff source. Specifically, I would like the date to appear in "\, \ \" format, for example, March 7, 2021. I am using the mom macros. I don't know if inserting today's date is something that is macro-dependent or macro-independent.
Asked by Shane Bishop (509 rep)
Mar 7, 2021, 05:17 PM
Last activity: Mar 7, 2021, 06:14 PM