Add time stamp to Stata figures

Especially in the early stages of a research project it might be good to “time stamp” figure so that you can later figure out when you created a certain figure. Of course you could just check the date in the explorer / finder, but you can also simply add a note to the figure with time and date of its creation:

For this purpose you can simply add Stata’s current time and date ("$S_TIME $S_DATE") to a note of a figure, such as

twoway (scatter y x), note("$S_TIME $S_DATE", span)

Span makes the date move to the very left.

Leave a Reply