---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: getDateTimeZone (timeZone)
layout: subsection
---

## <a id="section_m3p_myb_5db"></a>Description

Given the name of the time zone, returns a Java DateTimeZone object. If the name is null, returns UTC. Often used with `date:getTodaysDate` to return the date with the specified time zone.

## <a id="section_cyq_j1m_zsb"></a>Return Type

`DateTimeZone`

## <a id="section_dz5_pwg_5db"></a>Namespace Function Syntax

```
date:getDateTimeZone(timeZone)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>timeZone</td><td>A time zone string. For valid time zones, see the <a href="https://www.joda.org/joda-time/timezones.html">Available Time Zones on Joda.org</a>.</td></tr></tbody></table><br/>

<b>Example</b>

`date:getDateTimeZone('America/Los_Angeles')`

Returns DateTimeZone object with UTC-8.

