When I search something in Google, I sometimes see the publishing date of the post/article underneath. I've also searched for an article of my own which I have on my Wordpress-powered site, and Google also recognizes its publish date.

When I open my website's source, I don't see any special tags or anything that indicates the publish date. It is only written in a regular div, with nothing special tagged that would tell the SE that it is the publishing date (I could have any other dates of other things around the page too).

So is it hardcoded into Google the exact place of the Wordpress publish date in the DOM tree, or am I missing something?

I'm building a new website, with my own CMS, and I'm trying to find out how to implement date published recognition.

  • 2
    You're certainly missing something: you've only looked at the HTML, but there are also HTTP headers which say when a page was modified. What are they reporting for your article's permalink? I would guess that Google uses that in combination with its own records of how much the page has changed, but I have no actual evidence - hence the comment rather than an answer. Aug 18, 2011 at 11:55
  • yes, mine was a "rough" try.. I'll be looking into non-HTML elements/headers and sitemap as others also suggested Aug 18, 2011 at 12:57
  • @Peter No doubt that the HTTP headers (notably the Last-Modified header) are a metric that the SEs use. However, I doubt that it plays much of a part in determining the "published date" of an article - at least not what Google displays as the publish date. (Other SEs don't appear to display a 'published date'?) The published date of an article is probably not the last modified date of a document. Most pages on dynamic sites (even for wordpress posts) appear to return close to the current date/time. IMO the Last-Modified header is primarily used for caching.
    – MrWhite
    Aug 18, 2011 at 13:17
  • i think it has something to do with sitemap.. Aug 18, 2011 at 13:23
  • HTTP last modified stackoverflow.com/questions/204010/… or some semi-standard HTML metadata: stackoverflow.com/questions/4575967/… are other possibilities, but I'm not sure if Google really uses them. Nov 17, 2015 at 12:20

6 Answers 6


I just had a problem that all of my main pages were shown as being updated over 4 years ago, even though Google knows that that's not true because the pages have been indexed for that long and change substantially from month to month. After being really puzzled, then really annoyed, then puzzled again, I finally found the problem. Our legal terms were being served in a hidden div with a "Last updated: October 30 2007" and the div was being loaded on almost all our pages. (Because it pops up on registration) I've removed it and now I assume the date will either disappear or be corrected to something more reasonable.

A cautionary tale and one more piece of evidence that they check the semantics of the site more than the technical details or their own indexing history.

  • Do you include the last modified date of your pages anywhere else on the page, or RSS feed, or XML sitemap?
    – MrWhite
    May 9, 2012 at 0:47
  • I don't, because the site isn't a news site and I'd prefer not to emphasize it. Ideally, there would be no date for my homepage. Also, I imagine that they probably take the lastmod with a big grain of salt--I know I would if I were them.
    – mmdanziger
    May 9, 2012 at 12:09

I very much doubt that the published date of a post or article is based on the <lastmod> entry in an XML sitemap (as others have suggested) or the Last-Modified HTTP header for that matter. An XML Sitemap is only advisory, not authoritative. The last modified date of a document is probably not the same as the (original) publish date of an article. And, as I mentioned in my comment at the top of the page, the last modified date of a document is probably more important for caching and perhaps determining crawl rates. The Last-Modified HTTP header of dynamically generated pages are often very close to the actual date/time (as it is for WordPress blogs).

An RSS/Atom feed on the other hand does contain this specific nugget of information. And indeed, on Wordpress sites that do not include the publish date in the content, the publish date still appears in Google's search results. And as far as I can tell, this matches the date in the RSS Feed.

EDIT#1: However, an RSS feed does not necessarily contain all the pages. In most cases it should only contain the latest or most recently updated pages. But there is no reason that Google should forget what it has already read, and providing the content of that page has not changed then neither should the last modified date.

If there is no RSS feed I think Google is clever enough to analyse the page content. Particularly if dates are marked up 'semantically' with the help of microformats. It's perfectly feasible that Google will see the following as the authoritative published date for an article that it is contained within:

<abbr class="published" title="2010-08-27T15:45:00-0700">
Friday, August 27th, 2010

Google certainly does read microformats - hCard, hReview, etc.

Just to add, I don't think Google would state a publish date unless it was able to find something authoritative that would suggest this. It's not going to deduce a 'publish date' on speculative data, since an incorrect 'publish date' is no use to anybody and Google would get a lot of stick for it!

And just for the record (if @Tom is suggesting otherwise :) I think posts/articles should have the publish date visibly displayed. Many don't, and this can be frustrating for the reader particularly when researching technology issues and you find that having read half way through the article it's out of date!

EDIT#2: I have since experienced a similar annoyance that @mmdanziger details in his answer. On one of my old sites I have text of the form "Site Last Updated Sun 17th Jun 2012" (not marked up in any special way) at the top of every page (written to the page with JavaScript!!). This same date has been picked up by Google and now appears alongside several (but not all) pages that appear in the SERPS - this certainly is not the publish date of the page. It would seem that Google is simply scrapping the page for a string of the form "last updated (datestring)" (having processed the JavaScript!!). This particular site does not have an RSS feed. The site does have a Sitemap.xml file but the dates are different.

I have noticed similar behaviour on other sites also.

  • How does it recognize the correct date from this? <div class="footer"> <div class="links"> April 24, 2011 | <a href=... This is the ONLY place that refers to the published date of my post, and Google finds it and displays correctly in search result Aug 18, 2011 at 14:35
  • Is there anything specific in the anchor that follows it? Then again, it might not be. Do you also have an RSS feed (linked to in the META tags of the document)?
    – MrWhite
    Aug 18, 2011 at 14:43
  • I was looking for answer "how does google determines the date?" but noticed the same thing! Google tries to find a string of time in the page itself rather than the header last-modified or Sitemap.xml <lastmod>! Thanks for confirming my thoughts!
    – evilReiko
    Dec 10, 2014 at 8:52

I think Google uses Sitemap and RSS feed to recognize published date.. you can impliment this feature in your CMS by creating a xml site map according to Standards.


you should go through xml sitemap or RSS feed version to index your publish data through major search engines such as Google, Yahoo, & MSN. Generate XML sitemap for your website and submit it in web master tools for index.


According to Jonh Mueller at Google:

We use a variety of signals to determine which date to show, or if it makes sense to show one at all; it's not tied to one specific attribute.

John Mueller - Twitter

However, I find it most likely that Google looks for dates on web pages in the following places:

  • In plain sight on the page, using machine learning
  • Schema.org structured data, especially if the data can also be found in plain sight on the page

I think it intelligently looks for any dates on the page and when it's confident that it's the relevant date it uses it.

It's a little difficult sometimes as I think it can have a negative impact on SERP click-ability, I suppose it can have a temporary positive impact if it's a recent article/post but I'm fairly sure my sites would be better off without it (Google searchers might not be better off without it though!)

There are no options to control it via Google, only with your own methods. You can either:

  • Replace dates with dynamically generated images in an attempt to stop Google discovering it, but this can lead to other problems such as visual alignment/consistent font display/accessibility etc.
  • Strip all dates from the pages (this again might be frustrating for visitors/users when they want to discover the age of a source if you have relevant information).

For these reasons I would just ignore it.

  • I'm not trying to remove the date :) I'm trying to add the date feature to a new site I'm building.. Aug 18, 2011 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.