Loading
The online Trailblazer Community becomes read-only Oct 30, 2026Read More
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Extend Salesforce with Clicks, Not Code
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