1. Home
  2. Articles
  3. SEO
  4. XML Sitemaps
  5. XML Sitemap Last Modified Correct Format
Read about XML Sitemap Last Modified

XML Sitemap Last Modified Correct Format




During the review process of the sitemap and recent article modified date updates, I noted that I had missed adding the last modified date to my dynamic XML sitemap. I couldn't recall the correct format so thought I would post it for later use.


While not required in an XML sitemap the lastmod element can inform search engines on the last date that the particular page was modified. Here is a typical example.


The lastmod element in the XML sitemap will support any W3C date or data and time format. Typically either YYYY-MM-DD format or YYYY-MM-DDThh:mm: ssTZD is preferred.

Here is an example of a full entry for reference.

<url> <loc>https://www.bryan-myers.com/articles/website-notes/update/website-updates-planned-december-2018/</loc> <changefreq>monthly</changefreq> <priority>0.8</priority> <lastmod>2018-12-26</lastmod> </url>


Profile Picture of Bryan Myers - The Web Guy

Bryan Myers - "The Web Guy"

Advanced Digital Channel Engineer


  1. Articles discussing web related topics and technologies.Articles
  2. Articles related to Search Engine Optimization (SEO).SEO
  3. Learn more about XML Sitemaps.XML Sitemaps

Related Articles

Go Back