Some of you may have noticed that when your blog (or individual post) is listed on Google search results (SERPs), a date stamp gets prepended to the meta description of the indexed page (see the image below). There are are various theories regarding how and from where Google picks this date stamp. Some believe that it is the time stamp of the last post on your blog, where as a few others believe that it’s the date on which your site is last indexed. Regardless of the reason, sometimes this extra date field can be a bit annoying for some of you and in this post let me explain how you can remove the same.

Ways to remove date from search results

First of all, let me tell you that not every blogger or webmaster face this issue. And this doesn’t quite depend on your blog theme as well – i.e. Blogs using the same theme and layout may or may not have this issue. However, for those who have completely disabled post dates, this may not happen at all. And hence the fixing process starts based on that behavior because in most cases, Google seems to pick the date from the content of the page or your blog post.

There are basically two ways of removing this date in the Google search result or meta description.

1. Use image based dates instead of the usual theme (PHP) generated server side time stamp. In this case, you have to convert the date string to images and hence it may not be very easy to create the image styles that exactly match your theme. Also, you may have to change it every time you change your styles.

2. Use client side logic (javascript) to render the dates so that when Google picks the page, it doesn’t quite read whatever (date) is there between the script tags. I prefer this method.

(Third option obviously is to remove the dates totally but you might want your post dates to be present there)

So how do we fix it? Just follow the simple steps as given below for a WordPress blog. For any other blog platform/website, you may have similar logic.

– Open your theme’s index.php file.

– Search for the place where you display the time – usually a call to something like the_time(’F j, Y’) method

– Replace that logic with Javascript. i.e. paste the following code instead of the time (Please type in the code as I have actually pasted an image of the code snippet here)

javascript to remove date from Google indexing

This makes sure that the server side date rendering is avoided and hence Google wouldn’t list it next time it indexes your blog’s home page.

If you want to do the same for individual posts, repeat the above step for your single.php file. Please note that existing posts may take some time before the date from their description field is removed. To enforce the changes, you may want to republish the post as well.

Pros and cons of the date stamp on Meta description

If you are a regular blogger who makes one post (or more) a day, you may not really mind having a date prefixed on search results of your homepage. However, if you post once a week or so, like me, you may not want to show that your last update was a week back because it may affect your click-through rate from search. The same logic is applicable for individual posts as well. I mean, nobody will click a SERP link, if the post date/year shows something like 2008.

Also, the date prefix sometimes affects the readability of your page description (usually the marketing punchline) and at times truncates it as well.

Hope this tip was useful for your blog’s seo!

Happy SEO!

Comments to: How to remove Date stamp from Google SERP description?

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.