function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi MaliRavi Mali 

Formula field to extract Time from DateTime field .

Hi ,

Can anyone tell me the formula for Text type formula field to extract Time from DateTime field. I tried few ways but not getting the correct result.

User's TimeZone -  (GMT-07:00) Pacific Daylight Time (America/Los_Angeles)

Ex -  Start DateTime 4/25/2020, 4:00 PM , End DateTime -4/25/2020, 8:30 PM
Desired result : 4:00 PM - 8.30 PM

TIA.

 
AnudeepAnudeep (Salesforce Developers) 
Hi Ravi, 

You might find the section "Finding the Hour, Minute, or Second from a Date/Time" helpful in this document : https://help.salesforce.com/articleView?id=formula_examples_dates.htm&type=5

Anudeep