---
schema_version: "1"
id: 699a6a7922b8e13dede8a0cca1f3f62547679beefc8ec93ab284488a047fecc5
title: HOUR
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_hour.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_hour.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 09f9cc5eed58e549019bf6ca422daec997a1a57a3f3d6d7dd4e9acb50039bb9f
description: Returns the local time hour value without the date in the form of a number from 1 through 24.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

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.