Loading

Converting LastModifiedDate to Display Seconds in a Salesforce Report

Udgivelsesdato: Sep 5, 2026
Beskrivelse

By default, Salesforce Reports display the LastModifiedDate field without seconds. If you need to track time down to the second, for example to audit exactly when an Opportunity record was last updated, you can add a Row-Level Formula to the report that formats LastModifiedDate as DD/MM/YYYY HH:MM:SS.

Løsning

This article explains how to display the LastModifiedDate field with seconds included, in DD/MM/YYYY HH:MM:SS format, on a Salesforce Report. A Row-Level Formula within the report itself is the recommended approach, since it avoids creating unnecessary fields on the Opportunity object and keeps your data model clean and maintainable. This example uses the LastModifiedDate field on the Opportunity object, but the same approach works on other objects.

Before You Begin

The time is displayed in Greenwich Mean Time (GMT).

Step 1: Create the Report

  1. Log in to your Salesforce account.
  2. In the navigation bar at the top, click the App Launcher and search for Reports. Click Reports.
  3. From the Reports tab, click New Report.
  4. Select Opportunities as the report type, and click Start Report.
  5. Save the report with a name of your choosing.
  6. Modify or add Filters to identify the specific Opportunities that need to be displayed, specifying the desired range of Close Dates and other relevant criteria based on your requirements.

Screenshot of the Filters panel showing Close Date range and criteria fields

Step 2: Add a Row-Level Formula Column

  1. From the Columns section of the Outline pane, click the menu icon, then Add Row-Level Formula.

Screenshot of the Outline pane with the Columns section and the Add Row-Level Formula option visible

  1. In the Edit Row-Level Formula Column window, enter a Column Name, choose a Formula Output Type of Text, and enter the formula shown below. Click Validate to check for errors, resolve any that appear, then click Apply.

Screenshot of the Edit Row-Level Formula Column window with Column Name, Formula Output Type set to Text, and formula input fields labeled 1 through 5

Sample Formula

TEXT(DAY(DATEVALUE(LAST_UPDATE)))+"/"+
TEXT(MONTH(DATEVALUE(LAST_UPDATE)))+"/"+
TEXT(YEAR(DATEVALUE(LAST_UPDATE)))+" "+
TEXT(HOUR(TIMEVALUE(LAST_UPDATE)))+":"+
TEXT(MINUTE(TIMEVALUE(LAST_UPDATE)))+":"+
TEXT(SECOND(TIMEVALUE(LAST_UPDATE)))

This formula breaks LastModifiedDate (referenced here as LAST_UPDATE, the Row-Level Formula's built-in name for that field) into its day, month, year, hour, minute, and second components, then joins them back together as text in DD/MM/YYYY HH:MM:SS format. The new Row-Level Formula field automatically appears as a column in the report.

Step 3: Save and Run the Report

  1. Click Save & Run.

Screenshot of the Salesforce report showing the new Row-Level Formula column with date and time values displayed in DD/MM/YYYY HH:MM:SS format

Vidensartikelnummer

000395568

 
Indlæser
Salesforce Help | Article