Every article published publicly on the web has a published and last updated date attached to it. In addition to these two dates, there is also an indexed date shown in the search results. Whether you are a webmaster or a user, sometimes you may need one of these dates for various purposes like citing or linking on your page or for content validation.
Related: How to find number of pages in a website?
Published Vs Last Updated Vs Indexed Date
There are three basic dates related to any webpage published online:
Published date – original date on which the author published the article to make it available on the web.
Last updated or last modified date – this is the date the article was last modified by the author.
Indexed date – date on which the search engine crawler indexes the page for public display in search results.
Usage of These Dates
Generally all blog posts should have published or last updated date so that viewers can understand the validity of the content easily. For example, if you are reading an article on “Google Webmaster Tools” with screenshots you need to know the validity of the screenshots on that article to follow the instruction. Or else the current webmaster tools will be having completely different interface than the screenshots shown on the article.
How to Find the Last Updated Date of a Web Page?
In the above scenario even the initial published date if available on the page may not help much and you may be interested in finding the last updated date of the article. Follow the below methods to find out the last modified date of a web page.
Method 1 – Check HTTP Header from Page Source
Internet uses HTTP protocol to send and receive data. You can check out our article on how HTTP works. You can get the HTTP header details of a web page to find the last updated date.
- Use our free HTTP header checker tool to get the details of any web page. Simply type any URL of a web page and get the details like below including the last modified date.
- Alternatively, you can right click on the page and view the source code, the last updated date if available can be found in one of the <meta> tags within <head>…</head> section. Search the code using “Control + F” or “Command + F” with the keyword like “update”, “modify” or “date”.
- Try to use Developer Tools to find the HTTP header response which should contain the date in “Last-Modified” parameter.
Learn more on how to view source code in Google Chrome, Mozilla Firefox, Microsoft Edge and Mac Safari browsers.
Method 2 – Use XML Sitemap
All popular websites have XML Sitemap for informing search engines about the structure of the site. Depending upon the Sitemap structure, you can check whether the Sitemap contains the last updated date.
- Open the Sitemap of any website using the URL like “https://websitename.com/sitemap.xml”.
- Check out the “Last Modified” date against the web page URL you want to find.
- As you can see in the below example of our site, each page has a last modified date to help search engines understanding the content modification date and index the pages accordingly.
Method 3 – Using Google Search
Use Google search with the search query as “inurl:sitename.com/page-url/“. Now go to the browser’s address bar and add “&as_qdr=y15” at the end of the search URL and hit enter. You will see a search result displayed with a date at the start of meta description. The date shown in Google search is the last indexed date which should be approximately equal to the last updated date of that web page.
Method 4 – Using Command URL
- Open the webpage in a browser that you want to find the last updated date.
- Press enter to see a popup showing the last updated or modified date of that page.
Method 5 – Use Google Cache
In our recent article we have explained different ways to check the cached content in Google. You can use the Google cached date as an indication of the last modified date of a page.
- Use our free Google cache checker to find the last cached date of any web page.
- You can also directly get the cached data from Google Search. When you find the search result in Google Search, click on the small arrow at the end of the URL and select “Cached” option.
- You can get snapshot of the cached content details along with the last cached date by Google crawler.
Method 6 – Use Internet Archive
Internet archive is a non-profit organization that owns a crawling engine named Wayback Machine. It collects a snapshot of all publicly available web pages which you can use to get the last modified date.
- Open internet archive website.
- Type the web page in the Wayback Machine search box on the home page and hit enter key.
- You will see complete details of the snapshots between the first indexed date to the last found date. In our example, our website home page has 197 snapshots between October 25, 2012 and April 25, 2019.
- You can use these snapshots to find the content updated on the page. However, this is not a guaranteed date of last update. It is simply a snapshot of the last crawling from Wayback Machine crawler.
Related: How to Find number of backlinks to a website?
Display Last Updated Date in WordPress Site
If you are a site owner, you may be also interested in showing the last updated date on your webpages. This is an easy task to manually add a text and date in HTML pages. However, you need to use some functions on PHP based WordPress sites. Most of the standard WordPress themes show the published date by default using the function like below.
Published on <?php echo get_the_time(); ?>
You can use the below function to get the last modified date and display anywhere inside a dynamically generated WordPress PHP page.
Updated on <?php echo get_the_modified_time(); ?>
You may replace the existing code or add this code on your blog post template, generally single.php file. We use this code on our website as post meta data displaying the updated on and date below the page title.
There are many ways to find the last updated or last modified date of a web page. HTTP header and XML Sitemap methods are reliable and exactly show the date as they are automatically generated. Other methods are approximate which you can use when header or Sitemap details are not available.
Hello! Thank you for this tutorial. Method 3, using google search, worked for me. I’m doing a project, and it requires me to cite my sources, but the sites don’t have the dates posted, unfortunately. I’d hate to put “n.d.” on most of my sources. This is a big help. Thanks again!
Thanks for sharing this. But if i may ask, i there any software or app that can facilitate it?
Can you help me?
Is your “Header Checker” utility available to install on my computer?
However, I just incorporated the script in a new web page I was setting up and found it was always giving me the current date. Testing with various browsers, I found that the results vary with the browser as follows:-
Avast Secure browser – current date
Brave – current date
Firefox – updated date
Chrome – current date
Internet Explorer – updated date
Edge – current date
and just to check, I then copied a script from this forum, tested with the above browsers and found the same results.
I know this topic has been aired for at least ten years in various places, but I don’t think we are any nearer an answer
It has different dimensions. The tool used for creating websites has a big role in this. For example, we output last updated date under title and never show first published date. When we output both dates (published/updated), Google clearly picks up the published date which we don’t want to show in search results.
On other hand, HTTP headers pick up last updated date whenever there is a change on the site. For example, you leave the comment on today in an article does not mean anything in reality. However, some website building tools consider this as a change and treat as last updated date.
At any case, if there is a static page published and updated on two different dates without any other changes then you should the correct results.
please what about if you want to see latest post for every website….Can it be posible please?
What do you mean by every website? If you mean latest date for all pages in a website then XML Sitemap is the option, if that is available.
From sitemap i feel the last updated sitemap which we do it that date it would be shown if i am correct?
Yes, it will show the last post modified date.
when i use the second “&as_qdr=y15” method it gives me the last time i visited the web page, it explicitely emphasizes down below the link:
“u visited the site 2 times, last one in [current time]
Google will show that information about your last visit, when you logged into your account. It will also show you the performance of your own if that results in the list. This is not related to the last updated date – that is the date you have previously visited the same search result page.
The easiest method is to use your HTTP header checker tool which provides the accurate information from the header. Thank you!
Thanks for the read and good to know it helped you. However, note that the HTTP header of a page changes due to various reasons without the content update on the page. A good example is when the site owner add a tag or change the category (so called taxonomies) it will change the last updated date.
Thanks for sharing . It is very helpful for me and also informative for all those users who will come to read.
Good to know it helped you, thanks for the read.
I tried methods 1, 2 and 3 for a particular page and they gave me HUGE differences in dates. Which out of the 3 is the most reliable for an accurate result? I’m talking about dates that are 2014 and two 2019 (one Jan, one Nov) results here.
HTTP header and XML Sitemap should show the correct details. However, the problem is that the last updated date will change even when the category of the article is changed without modifying the content. In such case, you will see difference with published/modified and lasted updated dated.
Method 3 will only work if the website is vulnerable to cross site scripting
And even then you would have to put it into a form on the page not into the URL.
Another way to use method 2 is by following the first steps (inurl:webpagelink) and then hitting “Tools”, and using the custom range input. You can use whatever you want, but I use From: 1/1/1990, and leave the To: input blank.
Thanks for this! This one works. And you don’t have to register for anything like the HTTP Header Checker.
method 3 didn’t work.. what next?
Methods 2 and 3 did not work for me. Not sure what I did wrong.