Answers for "twig format date created"

PHP
0

display date time twig

// date
{{ post.published_at|date("m/d/Y") }}

// date time
{{ post.published_at|date('Y-m-d H:i:s') }}
Posted by: Guest on September-18-2020

Browse Popular Code Answers by Language