---
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, Orchestration Builder, Orchestrate, Orchestration]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: LocalDateTime Member Functions
layout: subsection
---

<a id="section_N10022_N1001F_N10001"></a>
<b>Instance Type: LocalDateTime</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 (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of days between the specified LocalDateTime and the instance LocalDateTime.</td></tr><tr><td>diffHours</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of hours between the specified LocalDateTime and the instance LocalDateTime.</td></tr><tr><td>diffMinutes</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of minutes between the specified LocalDateTime and the instance LocalDateTime.</td></tr><tr><td>diffMonths</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of months between the specified LocalDateTime and the instance LocalDateTime.</td></tr><tr><td>diffSeconds</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of years between the specified LocalDateTime and the instance LocalDateTime.</td></tr><tr><td>diffWeeks</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of weeks between the specified LocalDateTime and the instance LocalDateTime.</td></tr><tr><td>diffYears</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of years between the specified LocalDateTime and the instance LocalDateTime.</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 date-time formatted according to the specified pattern.</td></tr><tr><td>isAfter</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the specified LocalDateTime is after the instance LocalDateTime.</td></tr><tr><td>isBefore</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the specified LocalDateTime is before the instance LocalDateTime.</td></tr><tr><td>isEmpty</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the map is empty.</td></tr><tr><td>isEqual</td><td>Arguments: <ul><li>other (LocalDateTime)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the specified LocalDateTime is the same as the instance LocalDateTime.</td></tr><tr><td>minusDays</td><td>Arguments: <ul><li>Days (Number)
</li></ul> <p>Return Type:</p><ul><li>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>LocalDateTime
</li></ul> Returns a copy of <code>LocalDateTime</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>DateType
</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>LocalTimeType
</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><p>Returns the date and time as a string in one of these ISO-8601 formats:</p><ul><li>uuuu-MM-dd'T'HH:mm
</li><li>uuuu-MM-dd'T'HH:mm:ss
</li><li>uuuu-MM-dd'T'HH:mm:ss.SSS
</li><li>uuuu-MM-dd'T'HH:mm:ss.SSSSSS
</li><li>uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSS
</li></ul><p>The format used is the shortest that outputs the full value of the date and time, omitting trailing zeroes.</p></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 Local Date Time format.</td></tr></tbody></table><br/>

