DateServices.getWorkingDay

Returns the working day n days in the future from an origin date, and using the organisational calendar to determine non-working days. The organisational calendar can be configured using the Server Administration application.

Javascript example:

 var d1 = new Date(fields.DATE_FIELD1.value);
 var d2 = DateServices.getWorkingDay(d1, 5);
 fields.DATE_FIELD2.value = d2;
 

returns java.util.Date

Parameters

java.util.Date  fromDate,  int  numDaysAhead,