Creator Help

addBusinessDay

This topic describes the syntax and usage of the addBusinessDay function in Zoho Creator .

Description

Returns the date after a specified number of workdays.

Syntax

<start_date>.addBusinessDay(<days>)

(or)

workDay(<start_date>, <days>)

// this format is supported only in the free flow scripting mode of Script builder.

The addBusinessDay/workDay function syntax has the following arguments.

start_date - A date in date/date-time format that represents the start date.

days - An integer that represents the number of workdays after start_date.

Return Value

A date (datetime).

Example

a. In this example, the addBusinessDay/workDay function returns the date which is 3 days after the "Transaction_Date".

   TransactionDate.addBusinessDay(3);
   workDay([TransactionDate],3);

Top