Need Help Formatting DateTime Field in ListView from Suite7 Module Upgraded to Suite8

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!

I feel like since it is custom module. It should still be in legacy mode and your code should work.

thanks rsp,

When I make changes to date and time format in profile - it takes effect in the listview, however the time element is still showing.

So clearly my ‘custom code’ and ‘display params’ are not having any effect for some reason.

Have you ran Quick Repair & Rebuild. :hammer_and_wrench:

If it is v8.x,

Clear the symfony cache! :100: