How to put last modified date in blog post on Blogger

blogger

I want to have last modified date on my blog post on Blogger.com. I have tried this post but it didn't work out since this solution is for the old Blogger.com

Edit-1:
I got to know about this meta tag

<meta http-equiv="last-modified" content="YYYY-MM-DD@hh:mm:ss TMZ" />

But I don't know where to put this meta tag in specific post and how it works ?

Best Answer

It is a good question and the very simple answer is: you cannot. Blogger does not support a last modified header.

This page lists all the data points available for parsing and you will soon find that the dating options are limited. It simply isn't possible.

If you are wanting to add the relevant markup to appease the Structured Data Tool then you can tell it to use the original post date by adding or editing the template:

<abbr class='published' expr:content='data:post.timestampISO8601' itemprop='datePublished dateModified'><data:post.timestamp/></abbr>

The exact code you want to use depends on how your template is laid out. The above works for me.

In your specific case, if you wish to use a <meta> tag then you'll want to use:

<meta http-equiv="last-modified" expr:content="data:post.timestampISO8601" />

Alternatively you can add the data manually when you are editing the post. You'll need to use the HTML editor and add a relevant element. It's up to you whether you want it to show on the page or not.

Last updated: <div content='CCYYMMDDTHHMMSSZ' itemprop='dateModified'>March 2016</div>

or

<meta content='CCYYMMDDTHHMMSSZ' itemprop='dateModified'/>

I prefer the latter but you'll see some bloggers do make their modified time visible. Depends on the nature of your blog and personal preference.