addMonth
This topic describes the syntax and usage of the addMonth function in Zoho Creator .
Description
The addMonth function returns a date-time value after adding the specified number of Months.
Syntax
(or)
// this format is supported only in the free flow scripting mode of Script builder.
The addMonth function syntax has the following arguments.
date-time - Required. The date-time value to which you are adding the specified Months. Date-Time should be a date-time field type or as results of toTime() function.
int - Required. The number of Months to be added to the date-time value.
Example
datetime = "Aug 21, 2013 16:04:37";
time = datetime.toTime();
meetingTime=time.addMonth(3) // returns Nov 21, 2013 16:04:37
meetingTime=input.Date_Time.addMonth(5); // here, input.Date_Time refers to the date-time field in the form.
datetime = "Aug 21, 2013 16:04:37";
time = datetime.toTime();
meetingTime=addMonth(time, 3) // returns Nov 21, 2013 16:04:37
meetingTime=addMonth(input.Date_Time, 5); // here, input.Date_Time refers to the date-time field in the form.
