How to fix non iso date on Adobe Commerce (Magento)

Change every datePublished (and dateModified) value in your structured data from a human-readable string to a strict ISO-8601 date — formatted as YYYY-MM-DD or YYYY-MM-DDThh:mm:ss+hh:mm — so search engines can reliably parse your content's freshness.

Steps for Adobe Commerce (Magento)

  1. Schema in Adobe Commerce is typically added via a custom module or a third-party extension (e.g., MageWorx SEO Suite, Amasty SEO Toolkit).
  2. If using an extension, go to Stores → Configuration → the extension's settings panel and look for a 'Schema / Structured Data' section — update date format to ISO-8601 if the option exists.
  3. For custom module output, locate the Block or ViewModel PHP class that builds the JSON-LD array, typically in app/code/Vendor/Module/Block/ or similar.
  4. Replace any date formatting call that produces a human-readable string with PHP's ISO-8601 format: date('c', strtotime($dateString)) or (new \DateTime($dateString))->format(\DateTime::ATOM).
  5. Flush the Magento cache: System → Cache Management → Flush Cache Storage.
  6. Validate with Google's Rich Results Test on the affected page type.
Official Adobe Commerce (Magento) documentation ↗

What is non iso date?

Structured data on your pages (the hidden JSON-LD code that tells Google and other search engines what your content is about) includes date fields such as `datePublished` and `dateModified`. ISO-8601 is the internationally standardised date format — for example, `2025-03-12` or `2025-03-12T09:00:00+00:00`. When a date is written in plain English instead — like "Wed Mar 12 2025" — machines can't reliably read it, because there's no single agreed way to parse natural-language dates. Your current schema contains at least one date in a non-standard format, which means search engines may misread or completely ignore it.

Content freshness is a real ranking signal. Google uses `datePublished` and `dateModified` to understand when your pages and articles were created or last updated, and it surfaces that information directly in search results (e.g., "3 days ago" next to a result). If the date can't be parsed, Google may either ignore freshness entirely — hurting rankings for time-sensitive queries — or infer an incorrect date, making a new page look old. For AEO (Answer Engine Optimisation), where AI-powered tools like Google's AI Overviews and Bing Copilot prioritise the freshest, most reliable sources, an unreadable date can mean your content is skipped over in favour of competitors whose schema is clean. Fixing this is a quick win with direct impact on how your pages are indexed and presented.

See the complete Non iso date guide for every platform and the full background.

Not sure if your Adobe Commerce (Magento) store has this?

Run a free SEOLZ scan — we’ll find non iso date and every other issue across your whole site.

Scan my site free

Fix non iso date on another platform