RSS Feed/News Format dates in .custom_fields.getFormattedValue(fieldId)

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
27,986
Points
823

Reputation:

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!!

Continue reading...
 
Status
Not open for further replies.
Top