Keşfet

Format dates in .custom_fields.getFormattedValue(fieldId)

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
5,655
Tepkime puanı
287
Konum
Türkiye
Web sitesi
fivetu.xyz
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!!
 

Konu görüntüleyen kullanıcılar

Geri
Üst Alt