Automatic date created and date changed on a webpage (stack or snippet)

Hi - I would like to add a functionality to my web page that automatically stamps the creation date - and subsequently changes the ‘last changed’ date too!
Does a stack or snippet exist that can handle this functionality?

Joe Workman’s Tardis stacks should do this. Maybe overkill however as it does other things also and therefore costs a bit extra. https://joeworkman.net/rapidweaver/stacks/tardis/

Try this:

Page last updated: %last_published%

That’s what I use in my themes. RapidWeaver replaces %last_published% with the date the page was last modified. No need for extra stacks, plugins or PHP code. I believe the macro works anywhere in the page. It will be localised to your locale (e.g mm/dd/yy or dd/mm/yy), based on your system preferences for dates.

6 Likes

Thank you very much for the reference. I’m looking into it now and it seems to do it for me.

Thanks Will, .-- elegant and easy. Just one of the nice tips and hints I’m looking for.

Will, thanks for code, but is it possible to make the year show up fully (as dd.mm.yyyy)?

It is based on your system preferences for dates.