Check 13.24 · Content and editorial strategy

Display actual publication and update dates

Display accurate publication and update dates, consistent with datePublished and dateModified, on WordPress, Shopify, Laravel or Next.js.

Priority
Critical
Difficulty
Intermediate
Estimated time
1 to 3 h
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Every article, guide or information page shows two clearly visible, labelled dates: “Published on” and, if there has been a real update, “Updated on”. The same dates appear in the structured data (datePublished, dateModified). The update date only changes when the content changes substantially. Once the task is done, readers, search engines and AI assistants know how old the information is.

Why it matters

Readers judge how reliable a piece of advice, a price or a rule is by its date. With no date, they do not know whether the price shown is still valid; with a false date, they are misled.

Google often shows a date next to search results. Its documentation on byline dates asks you to show a visible, prominent date with a label such as “Published on” or “Updated on”, to use datePublished and dateModified in structured data, to keep the dates identical between the text and the markup, and never to give a future date. Google chooses the date from several signals: you can influence it, not impose it.

In its guide on helpful content, Google also mentions changing the date of a page to make it seem fresh when its content has not substantially changed: it is a practice to avoid, described in eliminate fictitious update dates (opens in a new tab).

Generative engines that compare several sources need to know which one is the most recent. A clear date is a useful clue; no engine publishes how much weight it gives it.

What it improves

  • Reader trust Readers know how old the information is.
  • Display in Google An accurate date next to the result, rather than a badly guessed one.
  • Click-through rate On queries where freshness matters, a recent, genuine date can help. The effect varies by query.
  • AI answers An explicit freshness marker for assistants that read the page. A plausible effect, not documented.
  • Editorial discipline A visible update date encourages you to keep the content up to date.
  • Rankings No direct effect from a displayed date.

How to check

Open an article: are the publication date and, where applicable, the update date visible near the title, with a label?

Then compare with the structured data:

curl -s https://example.com/blog/prix-entretien-chaudiere/ \
  | grep -o -E '"date(Published|Modified)" *: *"[^"]*"'

Expected result:

"datePublished": "2025-03-14T09:00:00+01:00"
"dateModified": "2026-11-20T10:30:00+01:00"

The dates must match the visible text and must not be in the future, and dateModified must not change on every page load. Reload the page twice a minute apart: if dateModified shows the current time, the template uses today's date instead of the content's date.

The Rich Results Test shows the dates read from the Article markup.

How to implement

Before you start

Five rules apply to every environment:

  1. Two separate, labelled dates: “Published on” and “Updated on”. Only show the second if it differs from the first.
  2. An editorial update date: the technical last-modified date changes on every save, including for a typo. Ideally, use a dedicated field, filled in by the writer during a substantial update (main content, data, advice). Failing that, only show the modification date when it is more than a day after publication.
  3. The same timestamp everywhere: visible text, <time datetime>, datePublished, dateModified.
  4. ISO 8601 format with a time zone in the markup: 2026-11-20T10:30:00+01:00. The time is optional, but if you give it, give the right time zone, including daylight saving time.
  5. Never a date generated on load: no new Date(), now() or today's date in the template.

The reference format, in HTML:

<p class="post-dates">
  Published on <time datetime="2025-03-14T09:00:00+01:00">14 March 2025</time>
  · Updated on <time datetime="2026-11-20T10:30:00+01:00">20 November 2026</time>
</p>

And in structured data:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "Boiler servicing prices in Nantes",
  "datePublished": "2025-03-14T09:00:00+01:00",
  "dateModified": "2026-11-20T10:30:00+01:00",
  "author": {
    "@type": "Person",
    "name": "Paul Garnier",
    "url": "https://example.com/auteurs/paul-garnier/"
  }
}
</script>

The full markup is covered in implement Article, BlogPosting or NewsArticle (opens in a new tab) and specify authors, publisher, dates and images (opens in a new tab).

Pages with no time dimension (homepage, contact, product page) do not need a displayed date. For an event page, the date of the event is not the publication date: Google asks you not to confuse them.

WordPress

Versions WordPress 6.4 to 7.1; Yoast SEO and Rank Math plugins in their November 2026 versions.

Structured data. Yoast SEO and Rank Math generate datePublished and dateModified from the post's dates. Check that another module (theme, schema plugin) does not generate a second, contradictory version.

Block theme. Open Appearance > Editor > Templates, then the single post template. The Date block shows the publication date. For the update date, insert its Modified Date variation next to it: it shows nothing until the post has been modified on a day after its publication. Since WordPress 6.9, these two variations rely on a block binding (core/post-data) to the publication or modification date. Add a label (“Published on”, “Updated on”) in a Paragraph block or through the prefix option if your version offers it.

Classic theme. In a child theme, edit the file that displays the post header (often single.php or template-parts/content-single.php):

<?php
$publishedAt = get_the_time( 'U' );
$modifiedAt  = get_the_modified_time( 'U' );
?>
<p class="post-dates">
    Published on
    <time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>">
        <?php echo esc_html( get_the_date() ); ?>
    </time>
    <?php if ( $modifiedAt > $publishedAt + DAY_IN_SECONDS ) : ?>
        · Updated on
        <time datetime="<?php echo esc_attr( get_the_modified_date( 'c' ) ); ?>">
            <?php echo esc_html( get_the_modified_date() ); ?>
        </time>
    <?php endif; ?>
</p>

The c format produces an ISO 8601 date with the time zone set in Settings > General. Check that time zone: a city (“Paris”) handles daylight saving time, a fixed offset (“UTC+1”) does not.

WordPress updates the modification date on every save. Group small corrections with the next real update, or use a custom editorial date field if your SEO plugin can use it for dateModified.

Shopify

Versions Shopify admin, all plans, November 2026; Horizon and Dawn themes.

In the theme, Online Store > Themes > … > Edit code, open the file that displays the article date: blocks/_blog-post-info-text.liquid in Horizon, the current default theme, and the themes derived from it; sections/main-article.liquid in Dawn and its derivatives. Replace the date display with:

{%- assign publishedAt = article.published_at | date: '%s' | plus: 0 -%}
{%- assign updatedAt = article.updated_at | date: '%s' | plus: 0 -%}
{%- assign gap = updatedAt | minus: publishedAt -%}

<p class="article-dates">
  Published on {{ article.published_at | time_tag: format: 'date' }}
  {%- if gap > 86400 %}
    · Updated on {{ article.updated_at | time_tag: format: 'date' }}
  {%- endif %}
</p>

The time_tag filter produces a <time> tag with a datetime attribute. article.updated_at changes every time the article is modified, even slightly.

Check whether the theme already generates Article or BlogPosting markup (look for application/ld+json or the structured_data filter in the code: Horizon uses it in sections/main-blog-post.liquid). If not, add this to the same section:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": {{ article.title | json }},
  "datePublished": {{ article.published_at | date: '%Y-%m-%dT%H:%M:%S%:z' | json }},
  "dateModified": {{ article.updated_at | date: '%Y-%m-%dT%H:%M:%S%:z' | json }},
  "author": {
    "@type": "Person",
    "name": {{ article.author | json }}
  }
}
</script>

Check the output with the Rich Results Test: the date must include the time offset, in the form +01:00.

Laravel

Versions Laravel 10 to 13. In Laravel 10, declare the dates in the protected $casts property instead of the casts() method, available from Laravel 11.

Add an editorial update date, separate from updated_at:

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('posts', function (Blueprint $table) {
            $table->timestamp('content_updated_at')->nullable()->after('published_at');
        });
    }

    public function down(): void
    {
        Schema::table('posts', function (Blueprint $table) {
            $table->dropColumn('content_updated_at');
        });
    }
};

In the Post model, declare the dates:

protected function casts(): array
{
    return [
        'published_at' => 'datetime',
        'content_updated_at' => 'datetime',
    ];
}

In the article's Blade view:

<p class="post-dates">
    Published on
    <time datetime="{{ $post->published_at->toIso8601String() }}">{{ $post->published_at->translatedFormat('j F Y') }}</time>
    @if($post->content_updated_at)
        · Updated on
        <time datetime="{{ $post->content_updated_at->toIso8601String() }}">{{ $post->content_updated_at->translatedFormat('j F Y') }}</time>
    @endif
</p>

<script type="application/ld+json">
{!! json_encode([
    '@context' => 'https://schema.org',
    '@type' => 'BlogPosting',
    'headline' => $post->title,
    'datePublished' => $post->published_at->toIso8601String(),
    'dateModified' => ($post->content_updated_at ?? $post->published_at)->toIso8601String(),
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG) !!}
</script>

translatedFormat shows the month in French if the application locale is fr. The time zone comes from config/app.php (timezone): set it to Europe/Paris, or store dates in UTC and convert them for display. In the back office, offer a “Substantial update” checkbox that fills in content_updated_at.

Next.js

Versions Next.js 15 and 16 (App Router). The component also works with the Pages Router.

Store both dates in the CMS or in the files' front matter, then create a component:

type PostDatesProps = {
  publishedAt: string;
  updatedAt?: string;
};

const formatDate = (iso: string) =>
  new Intl.DateTimeFormat('fr-FR', { dateStyle: 'long', timeZone: 'Europe/Paris' }).format(new Date(iso));

export function PostDates({ publishedAt, updatedAt }: PostDatesProps) {
  return (
    <p className="post-dates">
      Published on <time dateTime={publishedAt}>{formatDate(publishedAt)}</time>
      {updatedAt && updatedAt !== publishedAt && (
        <>
          {' '}· Updated on <time dateTime={updatedAt}>{formatDate(updatedAt)}</time>
        </>
      )}
    </p>
  );
}

In the article page, add the JSON-LD as recommended by the Next.js documentation:

const jsonLd = {
  '@context': 'https://schema.org',
  '@type': 'BlogPosting',
  headline: post.title,
  datePublished: post.publishedAt,
  dateModified: post.updatedAt ?? post.publishedAt,
};

<script
  type="application/ld+json"
  dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c') }}
/>

Set timeZone in the formatting: without it, the displayed date depends on the build server's time zone and can be a day off.

Common step — Define when the date changes

Write the rule into the editorial style guide (opens in a new tab):

Change New update date?
Fixing a typo, a link, a decorative image No
Updating a price, a figure, a rule, a version Yes
Adding or rewriting a section Yes
Layout change with no change to the text No
Correcting a factual error Yes, and flag it if it was significant

The same event updates dateModified and the sitemap's lastmod. See update dateModified (opens in a new tab) and provide a reliable lastmod (opens in a new tab).

Common mistakes

  • A date generated on load: the page always shows today's date.
  • Refreshing the date without changing the content: a misleading practice that Google names as one to avoid.
  • A single date with no label: readers do not know whether it is the publication or the update date.
  • Different dates between the text, the markup and the sitemap.
  • A wrong time zone, or a fixed offset that ignores daylight saving time.
  • Two Article markups (theme and plugin) with contradictory dates.
  • Showing the date of an event as the publication date.
  • Removing dates to hide how old the content is: the problem is the outdated content, not the date.

Frequently asked questions

Should you display the update date or the publication date?

Display both, with a clear label: “Published on” and “Updated on”. The update date only appears if the content changed substantially after publication. Google recommends labelling these dates on the page and providing the same values in datePublished and dateModified. Readers then know how long the information has existed and when it was checked.

Can you change an article's date without changing the article?

No. Changing an article's date to make it look recent when its content has not substantially changed is a practice Google names as one to avoid in its guide on helpful content. It misleads readers and brings no ranking benefit. Only update the date after a real change: data, advice, added or rewritten sections.

Why does Google show a different date from the one on my article?

Google chooses the displayed date from several signals, including the visible date and the structured data. It may pick another one if the page contains several dates, if the text and the markup contradict each other, or if the date is not prominent. Show one main labelled date near the title, align datePublished and dateModified with it, and remove stray dates.

Should you include the time and time zone in dateModified?

The time is optional in datePublished and dateModified, but Google recommends including it, with the time zone, in ISO 8601 format, for example 2026-11-20T10:30:00+01:00. If you give a time, give the right offset, including daylight saving time. A time with no time zone can be interpreted differently and shift the displayed date by a day.

Updated on

Topic checklist (PDF)

And now?

In the “Content and editorial strategy” topic

  1. Meet search intent
  2. Provide original value
  3. Bring in real expertise
  4. Avoid generic content and filler
  5. Avoid unnecessarily long introductions
  6. Cover the essential questions
  7. Explain concepts and terms
  8. Provide examples and practical cases
  9. Add useful original illustrations
  10. Include verifiable data
  11. Cite primary sources
  12. Check figures and dates
  13. Address objections
  14. Present benefits, limitations and alternatives
  15. Define an editorial line and style guide
  16. Set up an editorial review process
  17. Review AI-generated content
  18. Create an editorial calendar
  19. Identify outdated and redundant content
  20. Merge competing content if relevant
  21. Update high-performing content
  22. Remove useless content after analysis
  23. Update links and references
  24. Display actual publication and update dates
  25. Match length to complexity