07-12-2020, 04:31 AM
Hi, i try to make template with view parser ci4
in my case, i have data example like this :
and i want to change date format to 'd-m-Y' using filter view parser
But it doesnt work
in my case, i have data example like this :
Code:
$data=['blog_entries' => [
['post' => '2020-02-02']
];
and i want to change date format to 'd-m-Y' using filter view parser
Code:
{blog_entries}
<div>{post|date(d-m-Y)}</div>
{/blog_entries}
But it doesnt work