Loading

Display Time Value in a Salesforce Report Using a Formula Field

Publiseringsdato: Jun 4, 2026
Beskrivelse

This article explains how to display the time portion of a DateTime field in a Salesforce Report. By default, when you add a DateTime field as a row or column in a Salesforce Report, only the date value is displayed. The time value is not shown. To display the time value, an Administrator can create a formula field.

Løsning

To display the Time value, Administrators may choose to create a formula field that will display the time.  
 

  1. Create a New field with the Data Type as “Formula” and return type as “Text”.
  2. Select the Advanced Formula builder to use a syntax similar to the one below

Use the following formula syntax to extract the time from a DateTime field:

LEFT(RIGHT(TEXT(DateTimeField ± (X/24)), 9), 5)

— where ± means plus or minus depending on your timezone offset from GMT, and X is the number of hours offset.

For example, for PST (UTC-8), the formula would be: LEFT(RIGHT(TEXT(CreatedDate - (8/24)), 9), 5). This returns the time in 24-hour format. Add this formula field to your report to display time values.

Flere ressurser

Build a Formula Field 

Knowledge-artikkelnummer

000383792

 
Laster
Salesforce Help | Article