---
schema_version: "1"
id: caf0105b646af1b4b14ec2cdb26d005950916e57d1c2d936f5014410c52ff6ad
title: Get Current Time
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/field-service-dev/guides/field-service/source-files/actions/actions-obj-getcurrenttime.md
canonical_url: https://developer.salesforce.com/docs/service/field-service-dev/guide/actions-obj-getcurrenttime.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1ea26f991d980ddfdd8a7e8fbd9fc73a8c10b2e377530546a0438d11a353a03d
products:
  - Field Service Developer Guide
  - Service Cloud Developer Content
---

# Get Current Time

Gets the current time for a given time zone.

This action is available in API version 65.0 and later.

## Supported REST HTTP Methods

**URI:** `/services/data/vXX.X/actions/standard/getCurrentTime`

Where `XX.X` is the latest API version.

**Formats:** JSON, XML

**HTTP Methods:** POST

**Authentication:** `Authorization: Bearer TOKEN`

Where `TOKEN` is a variable.

## Inputs

|Input|Type|Description|
|-----|----|-----------|
|`timeZone`|string|Optional. The text representation of the time zone.|

## Outputs

|Output|Type|Description|
|------|----|-----------|
|`currentTime`|string|The current time in the given time zone.|

## Example

Sample request body:

```nolang
{
  "inputs" : [{
    "timeZone" : "America/Los_Angeles"
  }]
}
```

Sample response body:

```nolang
{
  "actionName" : "getCurrentTime",
  "errors" : null,
  "isSuccess" : true,
  "outputValues" : {
    "currentTime" : "2025-02-24 14:30:15"
  }
}
```

