Answer the question
In order to leave comments, you need to log in
How to change date format output in smarty?
Hello! There is a meta field with a field fragment on smarty
<meta itemprop="datePublished" content="{$news.date}">
Answer the question
In order to leave comments, you need to log in
https://www.smarty.net/docsv2/en/language.modifier...
That is, it will turn out something like this:
<meta itemprop="datePublished" content="{$news.date|date_format:"%Y-%m-%d"}">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question