Friendly Time Format Options for Velocity Scripting Salesforce Custom Field

Adrian_Bivens
Level 2

We are not familiar with velocity scripting and are trying to understand how we can format Time fields in our velocity token.

 

We are referencing a Salesforce custom field on the Case object.

 

We currently have this much completed:

#if( !$Case__cList.isEmpty() )
#set( $sortedCase__cList = $sorter.sort($Case__cList,"CreatedDate:desc") )
#set ($latestSortedCase = $sortedCase__cList[0])
${latestSortedCase.Meeting_Time__c}
#end

 

 

Any help is appreciated.

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator
Have you read the seminal post on Velocity days and times?

https://blog.teknkl.com/velocity-days-and-weeks/