Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          HOUR

          HOUR

          Returns the local time hour value without the date in the form of a number from 1 through 24.

          Use

          HOUR(time) and replace time with a time value or value such as TIMENOW().

          Example
          Example HOUR(TIMEVALUE(ClosedDate)) displays only the hour in a time field based on the value of the Time Closed field.

          HOUR(TIMEVALUE("17:30:45.125")) returns 17.

           
          Loading
          Salesforce Help | Article