XF 2.2 Format dates in .custom_fields.getFormattedValue(fieldId)

Orit

Active member
Hi :)

In a template, I am trying to print 2 custom_fields containing a date such as 25/5/25-29/5/25
(I'm using {{$content.custom_fields.getFormattedValue('date111')}}-{{$content.custom_fields.getFormattedValue('date2111')}})
It prints: 2025-05-25-2025-05-29

Is there a way to format it, so it shows the format: 25/05-29/05 (without the year, a forward slash instead of -)

Thanks!!
 
To anyone interested- I achieved it by simply using the split template filter.

Good luck to all :D
 
This seems to be kind of a frequenly asked question ...

 
This seems to be kind of a frequenly asked question ...

Thank you!!!
 
Back
Top Bottom