About

all about SFDC

Sunday, 25 March 2018

Formula Field to calculate hours from Date Time field in Salesforce

08:58

Hey there, This is sample formula field to get difference in hours from date time field to current time.

I have considered Event standard field ActivityDateTime to calculate hours in this example

See formula below screenshot.



formula:




Powered by Blogger.

Visualforce

Apex

Lightening UI