- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2023 03:18 PM
Can anyone help me with the script for an action where the number of days can be added to the date.
Input: Date, No of days
Output: Date
Script needs to: add Date + No of days and return date
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2023 01:21 AM
@Shilpa Mannoni1 Here is the custom action for you which takes two parameters Date and number of days and add the days to date and returns the updated date.
Here is the script for run script.
(function execute(inputs, outputs) {
// ... code ...
var someDate = new GlideDate();
someDate.setValue(inputs.date);
someDate.addDaysUTC(inputs.days);
outputs.new_date = someDate;
})(inputs, outputs);
I am also attaching the update set which contains this Action.
Please mark this answer correct and helpful if it addresses your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2024 06:18 AM
Great stuff, thanks!