XF 2.1 How do I change the date format in templates?

Stuart Wright

Well-known member
I have this
Code:
<xf:date time="{$product.product_release}" />
And I want to display it as 'Y' - the year only.
With Xenforo 1 it is
Code:
{xen:date $product.product_release,'Y'}
But that doesn't work.
How to I do it in Xenforo 2 please?
Thanks
 
Back
Top Bottom