Hi,
I’ve developed a custom module in SuiteCRM 7 that includes a DateTime field. Recently, I upgraded to SuiteCRM 8 and I’m facing a challenge with displaying this DateTime field in the ListView of my custom module. I want to format the display to show only the date in DD/MM/YY format, without hours and minutes.
In Suite7, I attempted to manage this using customCode
and display parameters in listviewdefs.php
, but this hasn’t been successful in Suite8. Here’s an example of what I tried:
php
Copy
'customCode' => '{$fields.date_entered.value|date_format:"%d/%m/%Y"}'
This code snippet did not work in Suite8, and I’m unsure how to adapt it to the new framework which uses more modern technologies like Symfony and Angular.
Can anyone guide me on how to achieve this date formatting in the ListView for SuiteCRM 8? Any examples or pointers to documentation would be highly appreciated.
Thank you!