addDays¶
Adds days to a specific date/time.
Parameters¶
Parameter  | 
Data Type  | 
Description  | 
|---|---|---|
date  | 
Date  | 
The date/time to add the number of days to.  | 
days  | 
Number  | 
The number of days to add to   | 
Return Values¶
Value  | 
Data Type  | 
Description  | 
|---|---|---|
date  | 
Date  | 
The date/time after adding the number of days.  | 
Samples¶
var d = new Date("2021-03-19 02:19:08")
msg = addDays(d,3);
return tools.resultBuilder.build(true, JSON.stringify(msg));
Output
"2021-03-22T02:19:08.000Z"