How to Add dateModified Freshness Signals for AI Search

Your pages either have no structured data or have JSON-LD without a dateModified property, so crawlers and AI answer engines have no machine-readable signal of when the content was last revised. By the end of this guide you will have added an accurate dateModified to your JSON-LD, shown a matching visible 'Last updated' date, and set up a process to keep it truthful.

By Updated ⏱ 30 minutes🎯 Beginner● Medium impactGEO / AI
Illustration: Freshness signals for AI fix guide
GEO / AI · FIX GUIDE Freshness signals for AI IMPACTEFFORT TIME30 minutes LEVELBeginner

Why it matters

AI assistants such as ChatGPT search, Perplexity, Gemini and Google's AI Overviews weigh recency when choosing which sources to quote, especially for pricing, comparisons, how-tos and anything year-sensitive. Without a dateModified, a revised page can look the same as one abandoned years ago, and Google may pick a less accurate date from the page text. A consistent date in schema, on the page and in the sitemap gives crawlers one clear answer and helps users trust that the information is current.

✕Before<scripttype="application/ld+json">{"@type":"Article","headline":"Pricingguide","datePublished":"2023-04-02"}</script>✓After<scripttype="application/ld+json">{"@type":"Article","headline":"Pricingguide","datePublished":"2023-04-02T09:00:00+00:00","dateModified":"2026-01-14T10:30:00+00:00"}</script>

What you need

Admin or theme access to your CMS, or access to the site's templates
Your key pages: guides, product, pricing and service pages
Google Rich Results Test (search.google.com/test/rich-results) or the Schema Markup Validator (validator.schema.org)
Optional: an SEO plugin such as Yoast SEO or Rank Math on WordPress

Step-by-step fix

1

Check what structured data you already output

Open a key page, press Ctrl+U (Cmd+Option+U on Mac) to view the source, and search for application/ld+json. Then search for dateModified. If you find JSON-LD but no dateModified, you only need to add one property.

If you find no JSON-LD at all, you will add a full block in step 3. Check one page of each template: blog post, product, service page and homepage.

text
curl -s https://example.com/blog/pricing-guide | grep -o '"dateModified":"[^"]*"'
Pro tip: Look at the raw source, not DevTools Elements. Some AI crawlers do not run JavaScript, so schema injected only on the client side may never reach them.
2

Pick the right schema type for each template

dateModified is valid on any CreativeWork, so put it on the main entity of the page:

  • Blog posts and guides: Article, BlogPosting or NewsArticle
  • Generic pages such as service, about or pricing pages: WebPage
  • FAQ pages: FAQPage

Use full ISO 8601 with a timezone, for example 2026-01-14T10:30:00+00:00. A date-only value like 2026-01-14 is valid but less precise.

Pro tip: If your SEO plugin outputs an @graph array, dateModified belongs on the WebPage and Article nodes, not on the Organization or WebSite nodes.
3

Add dateModified to the JSON-LD

Add or extend the JSON-LD block in the page <head>. Keep datePublished as the original publish date and set dateModified to the date of the last real content change. Generate both values from your CMS fields rather than typing them by hand, so they stay correct.

html
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How Example Co Prices Its Plans in 2026",
  "url": "https://example.com/blog/pricing-guide",
  "datePublished": "2023-04-02T09:00:00+00:00",
  "dateModified": "2026-01-14T10:30:00+00:00",
  "author": { "@type": "Person", "name": "Jane Doe" },
  "publisher": { "@type": "Organization", "name": "Example Co", "url": "https://example.com" }
}
</script>
Pro tip: dateModified must never be earlier than datePublished. Validators accept it, but it is a clear sign of broken data.
4

Show the same date visibly on the page

Add a 'Last updated' line near the title or byline and wrap it in a <time> element whose datetime matches the schema value. Google's guidance is that visible dates and structured data should agree. A visible date also lets AI tools that read page text, not schema, see the update.

html
<p class="meta">Published <time datetime="2023-04-02">2 April 2023</time> · Last updated <time datetime="2026-01-14T10:30:00+00:00">14 January 2026</time></p>
Pro tip: Do not show several unrelated dates near the headline, such as a comment date or copyright year. Google may pick the wrong one.
5

Align your XML sitemap lastmod

Make sure <lastmod> in your sitemap uses the same timestamp as dateModified for each URL. Google uses lastmod to schedule recrawls when it is consistently accurate. Bing and IndexNow-based tools rely on it as well.

html
<url>
  <loc>https://example.com/blog/pricing-guide</loc>
  <lastmod>2026-01-14T10:30:00+00:00</lastmod>
</url>
Pro tip: If you use IndexNow (built into Yoast, Rank Math and Cloudflare), a real update also pings Bing and other engines straight away.
6

Update key pages on a schedule and bump dates honestly

List your 10–20 pages that drive leads or are most likely to be cited, such as pricing, comparisons, top guides and FAQs. Review them every quarter. Only change dateModified when the content has materially changed:

  • New data, prices or screenshots
  • Added or rewritten sections
  • Corrected facts or outdated year references

Fixing a typo or changing the template should not move the date.

Pro tip: Add a short changelog line such as 'Updated January 2026: new plan prices'. It is useful to readers and gives AI answers a quotable recency cue.
7

Validate the result

org and confirm that dateModified appears on the Article or WebPage item with no errors. Re-run your site audit. The check passes once at least one crawled page exposes dateModified, but aim for every content template.

Finally, use URL Inspection > Request indexing in Google Search Console for the updated key pages.

Platform-specific notes

WordPress

Yoast SEO and Rank Math add dateModified to the WebPage and Article nodes automatically, using the post's modified date. If the check fails, confirm the plugin's schema output is on (Rank Math: Rank Math > Titles & Meta > Posts > Schema Type). Also check that another plugin is not removing it. Many themes hide the modified date. Add it with the_modified_date() in single.php or turn on 'Show updated date' in the theme customizer. Rank Math's Instant Indexing and Yoast's IndexNow handle pings.

Shopify

Most themes output Article JSON-LD in sections/main-article.liquid, often without dateModified. Add "dateModified": {{ article.updated_at | date: '%Y-%m-%dT%H:%M:%S%:z' | json }} next to datePublished. Edit it via Online Store > Themes > ... > Edit code. For products, use product.updated_at. Note that inventory changes can also move this date.

Wix

Wix Blog posts include datePublished and dateModified automatically. For static pages, open the page's SEO settings > Advanced SEO > Structured data markup and add a WebPage JSON-LD with dateModified. You must update that date by hand when you edit the page.

Webflow

On CMS template pages, go to Page Settings > Custom Code > Inside <head> tag and add a JSON-LD script. Use '+ Add Field' to insert the item's Updated On value for dateModified. Static pages need a manually maintained date. Make sure the value is ISO 8601, not a formatted display date.

Next.js

Render the JSON-LD on the server inside the page component, using <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }} />. Take dateModified from your CMS's updatedAt field. In the App Router, generate sitemap.ts with lastModified from the same field so both stay in sync.

Check that it worked

✅ How to verify

  • View the page source (Ctrl+U) and confirm that "dateModified" appears inside an application/ld+json block in the server-delivered HTML.
  • Run the URL through search.google.com/test/rich-results or validator.schema.org and check that dateModified shows on the Article or WebPage item with a valid ISO 8601 value.
  • Compare the schema date, the visible 'Last updated' date and the sitemap <lastmod> for the same URL. All three should match.
  • Re-run the audit and confirm the result reads 'dateModified present in structured data.'

⚠️ Common mistakes

  • Setting dateModified to the current time on every page load or build. Search engines learn to ignore dates that always change, and it can be treated as manipulation.
  • Changing the date without changing the content. Google's John Mueller and its documentation warn against date-only refreshes.
  • Adding dateModified only in JavaScript-injected schema, which many AI crawlers never see.
  • Using a display format such as "14/01/2026" or "Jan 14, 2026" instead of ISO 8601 in the schema.

Is this still an issue on your site? Run a free audit — ZORO checks this and 294 other SEO, AI-visibility, accessibility and security signals, with fixes for your platform.

Check my site free

FAQ

Does adding dateModified improve Google rankings?

Not directly. It is not a ranking factor on its own. It helps Google show the correct date in results and helps AI systems judge whether content is current, which affects whether your page is chosen and cited for time-sensitive queries.

What is the difference between datePublished and dateModified?

datePublished is when the content first went live and should never change. dateModified is when it was last meaningfully edited. Include both. If a page has never been edited, dateModified can equal datePublished.

How often should I update dateModified?

Only when you make a substantive change. For key commercial and guide pages, a quarterly review is a practical rhythm. The date should reflect real edits, not a fixed calendar.

Do AI tools like ChatGPT and Perplexity actually read dateModified?

Their crawlers fetch the raw HTML, and their retrieval systems use date signals from both structured data and visible page text when ranking sources for recency-sensitive questions. Having a consistent date in schema, on the page and in the sitemap covers all of these signals.