The workday() function takes dateTimeValue and numberOfBusinessDays as arguments. It returns the dateTimeValue after adding the specified number of business days to it.
The date value (without time value) will be returned in the format specified in Application Settings.
|<variable>||DATE-TIME||Variable which will contain the returned date value.|
The date-time value to which the specified number of business days will be added.
The time value is not taken into account while using this function.
A runtime error will be encountered if:
Please refer this help document to learn about the supported date-time formats.
The number of business days to be added to dateTimeValue.
A negative number will return the given date-time value as it is.
currentDate = '15-Mar-2019'; newDate = currentDate.workday(1); // returns '18-Mar-2019';