pp108 : CalculateEndDate

CalculateEndDate

 


This method calculates the end date after a given start date and duration.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <calculateEndDate xmlns="http://schemas.cordys.com/buscalendar/runtime/BusinessCalendar/1.0">
            <WorkspaceID>002481F0-8E9F-11E2-EE36-A5EED1105F38</WorkspaceID>
            <calendarName>Calender1</calendarName>
            <startDate>2008-09-23T22:37:53.234</startDate>
            <hours>10</hours>
            <minutes>20</minutes>
        </calculateEndDate>
    </SOAP:Body>
</SOAP:Envelope>
Request Parameters

 

Parameter

Description

Mandatory

Accepted Input Values

WorkspaceID ID of CWS Workspace No GUID (optional)

calendarName

Unique identifier for the calendar. This can be a full qualified name or a document ID.

Yes

You can specify one of the following values:

  • Full Qualified Name (FQN)
  • Document ID

startDate

Start date

Yes

Date must be in the UTC format. For example 2008-09-23T22:37:53.234.

hours

Hours

Yes

Any non-negative integer value

minutes Minutes Yes Any non-negative integer value
SOAP Response
 <data>
   <calculateEndDateResponsexmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/' xmlns='http://schemas.cordys.com/buscalendar/runtime/BusinessCalendar/1.0'>
      <calculateEndDate>2008-09-25T06:20:00.00</calculateEndDate>
    </calculateEndDateResponse>
 </data>
Response Parameters

Parameter

Description

calculateEndDate

Date in the UTC format. For example 2008-09-23T22:37:53.234.