How to add "Updated: xx/xx/xxxx" to...

User 2065697 Photo


Registered User
29 posts

Can someone please tell this great grandma how to add a field that shows automatically when a page is updated after it's published?

Thank you.
User 187934 Photo


Senior Advisor
20,188 posts

<script type="text/javascript">
var Date = "Updated: " + document.lastModified;
var MinusTime = Date.length-8;
document.writeln("<div style='font-size: 12px;'>");
document.write(Date.substring(MinusTime, 0));
document.writeln("</div>");
</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2065697 Photo


Registered User
29 posts

Eric, absolutely perfect and you even added "Updated" for me. Thank you so much. This is for our 50th high school reunion in September.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.