Don't change a page's date unless its content has really changed. A visible last-updated date, the dateModified in structured data and the lastmod in your sitemap are all signals that something changed.
They only help while they're true. Google lists changing dates to make pages look fresh as a warning sign of content made for search engines first. It also says it stops trusting a sitemap whose lastmod values don't match reality.
Which three dates are we talking about?
A page can say when it changed in three places. The first is the date a reader sees, such as "Last updated 18 October 2026" near the title. The second is dateModified, and datePublished, in the page's JSON-LD structured data. The third is the lastmod value for the page's URL in the XML sitemap.
Engines use these to decide what has changed and what's worth fetching again. Each one is only useful if it's accurate, and all three should describe the same moment. When they disagree, or when a clock sets one instead of the content, they stop being signals and become noise.
The visible date, the structured-data date and the sitemap lastmod should all come from one real value per page, so they can't drift apart. Google also asks that the visible and structured dates match, and that dates are never in the future. (Google Search Central: Add a byline date)
Should you update the date to make old posts look fresh?
No. If the content hasn't substantially changed, the date shouldn't change. Google's guidance on people-first content lists changing the date of pages to make them seem fresh, when the content hasn't substantially changed, as a warning sign of content made mainly for search engines. Adding or removing large amounts of text only to look fresh is another one.
There's a second cost. Google's sitemap guidance says that if lastmod does not match reality, eventually it is not going to believe you anymore. A site that stamps every page with today's date on every deploy teaches the crawler to ignore the field. That includes the day you really do update something important.
A date reports a change. It doesn't create value
Adding or removing content to look fresh won't help. Changing a stale page's date without checking its facts is worse than leaving it alone. If the numbers on the page are old, a new date is a lie a reader can catch.
When is an old date perfectly fine?
For evergreen reference content: a definition, a history, a recipe, an explanation of a principle that doesn't change. An old date on a page that's still correct isn't a defect. Readers don't distrust a two-year-old explanation of how a fixed thing works.
Dates matter most where accuracy ages: pricing, regulations, tool comparisons, statistics, software how-tos and best-of lists. There, a reader wants to know the page is current, and so does an engine. Put in effort based on how fast the content goes stale.
| Situation | What to do with the dates |
|---|---|
| Content changed materially | Update the visible date, dateModified and sitemap lastmod together |
| Only the template, footer, navigation or styling changed | Leave all three alone |
| A typo or small wording fix | Your choice. Not required, and never bump in bulk |
| The page never had a date | Add datePublished with the real first-publish date. Add dateModified only if the page has really been revised |
| The CMS cannot tell a real edit from a template change | Omit lastmod for those URLs. Google says leaving it out is fine |
| The build tool stamps every page at deploy | Stop. Derive the date from the content's real edit date |
If you can't find a real date, because there's no git history or CMS record, don't invent one. Ask the owner, or leave the field out.
What does a passing freshness check actually prove?
Very little about honesty. The freshness check in our toolkit passes if at least one article-type JSON-LD item has a date that parses. It doesn't check how recent the date is. It doesn't check whether the structured date matches the visible one, or whether dateModified is earlier than datePublished. A set of made-up dates that look different from each other passes.
The sitemap check is a bit sharper. It fails if any lastmod is more than a day in the future. It also fails if every entry has the same timestamp and that timestamp is within the last day, which is what a build-time clock looks like. Otherwise it passes. So a green result means the signals exist and aren't obviously broken. It doesn't mean they're true. You have to check consistency yourself.
It's the same pattern as other audit findings. A check can pass without the underlying thing being right.
Why audit findings need checkingHow do you make the dates honest, in order?
Take each date from the content, not the clock
Use the CMS modified field, a frontmatter updated field, or the last git commit that touched the content file. Watch out: a commit date moves when someone reformats or renames a file. If you need control, use a frontmatter field.
Feed all three places from one value
Work out the date once per page. Then render the visible date, the JSON-LD and the sitemap lastmod from it. That way they can't drift apart.
Show a visible date in a time element
Put a labelled Published or Last updated date near the title, with a machine-readable datetime attribute, and keep it matching the structured data.
Set datePublished and dateModified in ISO 8601
Add them to the Article, BlogPosting or WebPage JSON-LD. A date alone is valid, and a time with the right timezone adds precision. Never use a future date. Use the date the page itself was published, not the date of the event it covers.
Emit sitemap lastmod only where you trust it
Use a standard date format and never a build timestamp. If you can't trust the value for a URL, leave it out.
Pick real refreshes by traffic, then update the dates
Decide which pages deserve a real refresh by looking at where rankings or clicks have fallen. Update the content first. Only then update the dates.
What does honest structured data look like?
A post first published in March and revised in a real way in October carries both dates. The visible text on the page says the same thing.
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "How to ...",
"datePublished": "2026-03-02",
"dateModified": "2026-10-18"
}One more trap. A date-only value near midnight can show as the previous or next day in another timezone. Where precision matters, use a full timestamp with an offset. And don't expect a visible byline date in search results even when everything is right, because Google doesn't guarantee one.
Where is the full implementation guide?
This article covers why honesty matters and how to decide. The full procedure is in the documentation. That includes how to grep a sitemap and how to set up dates in each framework.
Read the content freshness implementation guideThe same guide is an agent skill, so a coding agent can make the fix in your repository. The skill source is public.
View the skill source on GitHubYou can install the skills into Claude Code and other coding agents. Install details are in the skills index.
See how to install the AEO skillsCommon questions
Does updating the date on a post improve my rankings?
No. Google says adding or removing content to seem fresh won't help. It lists changing dates without changing the content as a warning sign of search-engine-first content. Freshness signals report that something changed. They don't create value on their own.
What is the difference between datePublished and dateModified?
datePublished is when the page first went live. dateModified is when it was last significantly changed. Add dateModified only if the page has really been revised. Never set it earlier than datePublished, and never set it to a future date.
Why does my sitemap show today's date on every URL?
Almost always because the build tool stamps every page with the build time when no real date is supplied. Google says it stops trusting lastmod that doesn't match reality. So take the value from the content's real edit date, or leave it out for URLs you can't trust.
Is an old publish date bad for evergreen content?
No. An old date on a page that's still correct isn't a defect. Dates matter most where accuracy ages, such as pricing, regulations, comparisons and software how-tos. Spend your refresh effort there first.
Sources
Related guides
Want it done for you
Want this done and re-checked every month? Our monthly maintenance re-runs your buying questions in ChatGPT, Perplexity and Google, ships the fixes that keep you out of the answers, and reports what moved. Or run the free check on your site first at advancelabs.dev/tools/audit.
See how it works
