---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps]
keyword: [Integrate, Workday Integration, Orchestrate for Integrations, Orchestration, Orchestration Builder]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: ZonedDateTime Member Functions
layout: subsection
---

<a id="d79e128"></a>
<b>Instance Type: ZonedDateTime</b>

<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>atZone</td><td>Arguments: <ul><li>zoneid (String)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns the date-time combined with the specified time-zone to create a <code>ZonedDateTime</code>.</td></tr><tr><td>diffDays</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of days between the specified ZonedDateTime and the instance ZonedDateTime.</td></tr><tr><td>diffHours</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of hours between the specified ZonedDateTime and the instance ZonedDateTime.</td></tr><tr><td>diffMinutes</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of minutes between the specified ZonedDateTime and the instance ZonedDateTime.</td></tr><tr><td>diffMonths</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of months between the specified ZonedDateTime and the instance ZonedDateTime.</td></tr><tr><td>diffSeconds</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of years between the specified ZonedDateTime and the instance ZonedDateTime.</td></tr><tr><td>diffWeeks</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of weeks between the specified ZonedDateTime and the instance ZonedDateTime.</td></tr><tr><td>diffYears</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of years between the specified ZonedDateTime and the instance ZonedDateTime.</td></tr><tr><td>format</td><td>Arguments: <ul><li>pattern (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the zoned date-time formatted according to the specified pattern.</td></tr><tr><td>isAfter</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the specified ZonedDateTime is after the instance ZonedDateTime.</td></tr><tr><td>isBefore</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the specified ZonedDateTime is before the instance ZonedDateTime.</td></tr><tr><td>isEqual</td><td>Arguments: <ul><li>other (ZonedDateTime)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the specified ZonedDateTime is the same as the instance ZonedDateTime.</td></tr><tr><td>minusDays</td><td>Arguments: <ul><li>days (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of days subtracted.</td></tr><tr><td>minusHours</td><td>Arguments: <ul><li>hours (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of hours subtracted.</td></tr><tr><td>minusMinutes</td><td>Arguments: <ul><li>minutes (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of minutes subtracted.</td></tr><tr><td>minusMonths</td><td>Arguments: <ul><li>months (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of months subtracted.</td></tr><tr><td>minusSeconds</td><td>Arguments: <ul><li>seconds (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of seconds subtracted.</td></tr><tr><td>minusWeeks</td><td>Arguments: <ul><li>weeks (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of weeks subtracted.</td></tr><tr><td>minusYears</td><td>Arguments: <ul><li>years (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of years subtracted.</td></tr><tr><td>plusDays</td><td>Arguments: <ul><li>days (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of days added.</td></tr><tr><td>plusHours</td><td>Arguments: <ul><li>hours (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of hours added.</td></tr><tr><td>plusMinutes</td><td>Arguments: <ul><li>minutes (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of minutes added.</td></tr><tr><td>plusMonths</td><td>Arguments: <ul><li>months (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of months added.</td></tr><tr><td>plusSeconds</td><td>Arguments: <ul><li>seconds (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of seconds added.</td></tr><tr><td>plusWeeks</td><td>Arguments: <ul><li>weeks (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of weeks added.</td></tr><tr><td>plusYears</td><td>Arguments: <ul><li>years (Number)
</li></ul> <p>Return Type:</p><ul><li>ZonedDateTime
</li></ul> Returns a copy of <code>ZonedDateTime</code> with the specified number of years added.</td></tr><tr><td>toDate</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Date
</li></ul> Returns the <code>LocalDate</code> part of the date-time, ignoring time.</td></tr><tr><td>toLocalTime</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>LocalTime
</li></ul> Returns the <code>LocalTime</code> part of the date-time, ignoring date.</td></tr><tr><td>toString</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the <code>LocalDateTime</code> followed by the <code>ZoneOffset</code>. Returns the <code>ZoneId</code> if that ID doesn't match the offset. The output string is compatible with ISO-8601 if the offset and ID match.</td></tr><tr><td>toXMLDateTime</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns a string representation of the date in the ISO Offset Date Time format.</td></tr></tbody></table><br/>

