Overview
generate_freshness_code creates date markup:
- Multiple formats — HTML meta tags and JSON-LD schema
- Current timestamps — uses current date or your specified dates
- Copy-paste ready — code you can add directly to your pages
- Spec-compliant — follows schema.org Article standards
This tool is completely free and works without an API key.
Parameters
The page URL you want to add date markup to. Used for context and to extract any existing dates.
Example prompts
Response structure
The tool returns a JSON object with:HTML meta tags for Open Graph article dates
JSON-LD schema markup for Article dates
ISO 8601 formatted publish date
ISO 8601 formatted last modified date
Where to place each code snippet in your HTML
Usage example
Generated code formats
HTML meta tags
JSON-LD schema
When to use
Usegenerate_freshness_code when:
- audit_article shows freshness check fails — page is missing date markup
- audit_freshness identifies missing pages — fix each URL in bulk
- Publishing new content — add dates from the start
- Updating old content — signal freshness to AI assistants
Implementation
Verify implementation
Use audit_article to confirm freshness check passes
Date format
All dates use ISO 8601 format with UTC timezone:2024-02-28— date (YYYY-MM-DD)T— separator10:00:00— time (HH:MM:SS)Z— UTC timezone indicator
Always use UTC timezone (Z suffix) for consistency. AI assistants will convert to local timezones when displaying.
Content management integration
If using a CMS, automate date markup:- WordPress — add to theme’s
header.phpusingget_the_date()andget_the_modified_date() - Next.js — add to page metadata using frontmatter dates
- Gatsby — use GraphQL to inject dates into helmet/SEO component
- Static sites — add dates manually to each page’s frontmatter
Next steps
- audit_article — verify freshness check passes
- audit_freshness — scan all blog posts for missing dates