Check 26.09 · Editorial and keyword localization

Adapt date and number formats

Show dates, times, numbers and percentages in each market's format on WordPress, Shopify, Laravel, Symfony or Next.js, without breaking technical data.

Priority
Important
Difficulty
Intermediate
Estimated time
2 h to 1 day
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

A date or a number is not written the same way everywhere: 03/04/2026 means 3 April in Paris and 4 March in New York, and 1.234 is one thousand two hundred and thirty-four in Berlin but just over one in London. Adapting these formats means displaying every date, time, price, quantity and percentage according to the conventions of the page's language and country, from a single technical value. Once this check is done, no visible value is ambiguous for a local reader, and the values read by machines (structured data, sitemaps, datetime attributes) stay in ISO 8601 format.

Why it matters

A foreign format does more than slow reading down: it causes mistakes. An American reader who sees “estimated delivery 05/06” expects the parcel in May; a German shopper who reads “1,500 kg” understands one and a half kilos. These mistakes cost customer service contacts, returns and trust: a page that writes numbers the foreign way gives away a translation nobody reviewed.

On the search engine side, Google reads the date displayed on the page to date an article. Its documentation on publication dates asks for a visible, clearly labeled date (“Published on”, “Updated on”) that is consistent with the datePublished and dateModified properties of the structured data. A date that is ambiguous, or that contradicts the markup, blurs this signal.

Generative engines reuse numerical facts: prices, dimensions, lead times, effective dates. A correct, unambiguous local format reduces the risk of a figure being misread and then repeated. It is a sensible precaution, not a measured effect: no practice guarantees an accurate citation.

What it improves

  • Understanding and conversion Delivery dates, trial periods, deadlines and prices read correctly the first time.
  • Trust The page looks written for the market, not hastily translated.
  • Dates in Google results The visible date and the markup are consistent, which helps Google pick the right date. An indirect effect.
  • Accuracy of AI answers Fewer misread figures. A plausible effect, not proven.
  • Ranking No direct effect. Number formatting is not a ranking factor.

How to check

Open three pages per language version: a dated article, a product or pricing page, and a page with a specifications table. For each visible value, ask yourself whether a reader from that country reads it without hesitating.

Then look for ambiguous numeric dates in the HTML of a version:

curl -s https://example.com/en-us/blog/ | sed -e 's/<[^>]*>/ /g' | grep -o -E "\b[0-9]{1,2}[/.-][0-9]{1,2}[/.-][0-9]{2,4}\b" | sort | uniq -c

On a US version, 25/11/2026 is an obvious mistake; 03/04/2026 is ambiguous in every version.

Also check:

  • Structured data: in the Rich Results Test, datePublished, dateModified and price must stay in their technical format (2026-11-25T09:00:00+01:00, 1234.50), whatever the language of the page.
  • Sitemaps: the lastmod tag stays in W3C Datetime format (2026-11-25).
  • The thousands separator: a number such as 12 345 in French must not break at the end of a line. A non-breaking space, or the narrow no-break space (U+202F) produced by internationalization libraries, prevents this.

Reference values produced by the JavaScript Intl API (Unicode CLDR data) for 25 November 2026 and the number 1,234,567.891:

Locale Short date Long date Time Number Percentage
fr-FR 25/11/2026 25 novembre 2026 14:30 1 234 567,891 12,5 %
fr-CA 2026-11-25 25 novembre 2026 14 h 30 1 234 567,891 12,5 %
fr-CH 25.11.26 25 novembre 2026 14:30 1 234 567,891 12,5%
de-DE 25.11.26 25. November 2026 14:30 1.234.567,891 12,5 %
de-CH 25.11.26 25. November 2026 14:30 1’234’567.891 12.5%
en-US 11/25/26 November 25, 2026 2:30 PM 1,234,567.891 12.5%
en-GB 25/11/2026 25 November 2026 14:30 1,234,567.891 12.5%
es-ES 25/11/26 25 de noviembre de 2026 14:30 1.234.567,891 12,5 %
nl-NL 25-11-2026 25 november 2026 14:30 1.234.567,891 12,5%
ja-JP 2026/11/25 2026年11月25日 14:30 1,234,567.891 12.5%

These formats change with CLDR releases: rerun the test in your browser rather than copying the table into code.

How to implement

Before you start

Four rules apply to every environment:

  • One technical value, localized displays. Store dates in ISO 8601 with a time zone (or in UTC) and numbers as numeric types. Formatting happens at the last moment, on display, according to the page's locale (fr-FR, de-CH, en-US). Never store a date that is already formatted as text.
  • Machines read the technical format. datetime attribute, structured data, lastmod, product feeds, APIs: always ISO 8601 and a decimal point. The schema.org price property explicitly requires a point as the decimal separator and no thousands separator.
  • Prefer the long date in body text. “25 November 2026” is ambiguous in no language; 25/11/26 potentially is. Keep short numeric formats for tables and dense interfaces.
  • A country locale, not just a language. en is not enough: en-US and en-GB do not write dates in the same order, and de-DE and de-CH do not use the same thousands separator. Align the formatting locale with the page's hreflang code.

Recommended HTML markup for a visible date:

<p>Updated on <time datetime="2026-11-25">25 November 2026</time></p>

Also think about time units and related conventions: 12- or 24-hour clock, the first day of the week in a calendar (Monday in France, Sunday in the United States), and the time zone shown for a webinar or a deadline. Currencies and units of measurement have their own check: adapt currencies and units of measurement (opens in a new tab).

WordPress

Versions WordPress 6.9 to 7.1; WPML 4.6 to 5.4 or Polylang 3.x.

WordPress formats dates with wp_date() and the template functions (get_the_date(), the_modified_date()), which translate month names according to the site language. The format itself comes from Settings > General > Date Format, so you need one format per language.

  • WPML: WPML > String Translation, follow the link to translate admin texts, tick date_format and time_format, add them to String Translation, then enter one format per language (j F Y for French, F j, Y for US English, j. F Y for German).
  • Polylang: Languages > Translations, WordPress group: the date format and time format are listed there and can be translated per language.

If the theme hard-codes a format, replace it with the site option:

<time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>">
    <?php echo esc_html( get_the_date() ); ?>
</time>

get_the_date( 'c' ) outputs the ISO 8601 value for the attribute; get_the_date() without an argument applies the language's format. For numbers, use number_format_i18n( $nombre, 2 ), which applies the separators of the active language. WooCommerce handles its prices separately: WooCommerce > Settings > General, Currency options section (thousand separator, decimal separator); with a multilingual or multi-currency plugin, these settings are defined per currency.

Shopify

Versions Shopify admin, all plans, November 2026.

Dates go through the Liquid date filter. Use its format: parameter, which reads the formats defined in the theme's locale files, rather than a hard-coded strftime format:

<time datetime="{{ article.published_at | date: '%Y-%m-%d' }}">
  {{ article.published_at | date: format: 'date' }}
</time>

For a custom format, declare it in each of the theme's locales/*.json files (Online Store > Themes > … > Edit code):

{
  "date_formats": {
    "jour_mois_annee": "%d %B %Y"
  }
}

In locales/en.default.json, the same key would be, for example, "%B %d, %Y". Prices are displayed with the money and money_with_currency filters, which follow the currency format of the store and of its markets: check the output for each market from the Markets page of the admin.

PrestaShop

Versions PrestaShop 8 and 9.

Date formats are set per language: International > Translations for the labels, and International > Localization > Languages, in each language's form, the “Date format” and “Date format (full)” fields. Numbers and prices follow the CLDR data of the language and the currency; adjust the price format in International > Localization > Currencies if needed.

Magento

Versions Magento Open Source and Adobe Commerce 2.4 (2.4.6 to 2.4.9).

Magento (Adobe Commerce) formats dates and prices according to the locale of each store view: Stores > Configuration > General > General > Locale Options > Locale, choosing the scope of the store view concerned. A de_CH view and a de_DE view will not show the same separators.

Laravel

Versions Laravel 11 to 13.

Laravel provides the Number helper (the PHP intl extension is required) and Carbon for dates:

use Illuminate\Support\Carbon;
use Illuminate\Support\Number;

$locale = app()->getLocale(); // 'de_CH', 'fr_FR', 'en_US'…

$publishedAt = Carbon::parse($post->published_at)->locale($locale);

$publishedAt->isoFormat('LL');      // 25. November 2026 / 25 novembre 2026 / November 25, 2026
$publishedAt->toIso8601String();    // for the datetime attribute and the JSON-LD

Number::format(1234567.891, maxPrecision: 2, locale: $locale);   // 1'234'567.89 in de_CH
Number::percentage(12.5, precision: 1, locale: $locale);         // 12,5 % in fr_FR

In Blade:

<time datetime="{{ $post->published_at->toIso8601String() }}">
    {{ $post->published_at->locale(app()->getLocale())->isoFormat('LL') }}
</time>

isoFormat('LL') applies the locale's long format; translatedFormat('j F Y') forces a fixed order and therefore does not suit every language.

Symfony

Versions Symfony 6.4 to 8.1, Twig 3 with twig/intl-extra.

Install the Twig Intl extension (twig/intl-extra), then:

<time datetime="{{ article.publishedAt|date('c') }}">
    {{ article.publishedAt|format_date('long', locale=app.request.locale) }}
</time>

{{ product.weight|format_number(locale=app.request.locale) }}
{{ 0.125|format_number(style='percent', locale=app.request.locale) }}

In PHP, IntlDateFormatter and NumberFormatter give the same result outside templates.

Next.js

Versions Next.js 15 and 16; next-intl 4 for the library-based variant.

Use the Intl API with the route's locale, and always set the time zone: otherwise the server and the browser may format differently, which causes a hydration error.

export function formatDate(iso: string, locale: string): string {
  return new Intl.DateTimeFormat(locale, {
    dateStyle: 'long',
    timeZone: 'Europe/Paris',
  }).format(new Date(iso));
}

export function formatNumber(value: number, locale: string): string {
  return new Intl.NumberFormat(locale, { maximumFractionDigits: 2 }).format(value);
}
<time dateTime={post.publishedAt}>{formatDate(post.publishedAt, locale)}</time>

With next-intl, the useFormatter() hook provides format.dateTime() and format.number(), and the time zone is declared once in the configuration. Nuxt (i18n module, $d and $n functions with datetimeFormats and numberFormats per locale) and Astro (the Intl API in components) follow the same logic.

Common mistakes

  • Hard-coding a format in the template (d/m/Y): every language inherits the French format.
  • Using a language-only locale: en gives your British readers the American format.
  • Localizing technical values: datePublished as “25 novembre 2026” or price as 1 234,50 in the JSON-LD makes the markup invalid.
  • Translating the text and forgetting the tables of specifications, the charts and the images that contain figures.
  • Converting numbers by hand during translation: “1,5” becomes “1.5” in one paragraph and stays “1,5” in the table next to it.
  • Displaying automatic update dates that change without any real modification: see eliminate fictitious update dates (opens in a new tab).
  • Forgetting the time zone of an online event or a limited-time offer: “until midnight on 30 November” does not mean the same moment in Montreal and in Paris.

Frequently asked questions

Which date format should you use on a multilingual site?

In body text, display each locale's long date, for example “25 novembre 2026” in French or “November 25, 2026” in US English: this format is ambiguous in no language. Keep short numeric formats for tables, following the local order. In the HTML, add the ISO 8601 value in the datetime attribute of a time element, and keep that same technical format in the structured data.

Should dates be translated in structured data?

No. The datePublished and dateModified properties of structured data stay in ISO 8601 format, for example 2026-11-25T09:00:00+01:00, in every language. Only the date visible on the page follows local conventions. Google asks for the two to be consistent: same day, same event. Prices follow the same logic, with a decimal point and no thousands separator in the markup.

Does number formatting affect SEO?

Not directly: the format of dates and numbers is not a ranking factor. Its effect goes through understanding. A clear visible date that is consistent with the markup helps Google date the page correctly, a price or a dimension in the right format prevents reader mistakes, and unambiguous figures limit the risk of a generative engine misreading them.

How do you stop a large number from breaking at the end of a line in French?

Use a non-breaking space as the thousands separator, or let an internationalization library format the number: the JavaScript Intl API, NumberFormatter in PHP or Laravel's Number helper insert the narrow no-break space U+202F that the Unicode CLDR data specifies for French. The number then stays on a single line. Avoid typing ordinary spaces in numbers written by hand.

Updated on

Topic checklist (PDF)

And now?

In the “Editorial and keyword localization” topic

  1. Research keywords by language
  2. Research keywords by country
  3. Identify native expressions
  4. Analyze local volumes, competition and SERPs
  5. Identify local intent
  6. Adapt selling points
  7. Adapt cultural references and examples
  8. Adapt currencies and units of measurement
  9. Adapt date and number formats
  10. Adapt phone numbers
  11. Adapt regulatory and tax information
  12. Adapt payment methods
  13. Adapt delivery terms
  14. Have strategic pages reviewed by proficient speakers
  15. Maintain a glossary and translation memory