Skip to content

Commit f5b4e84

Browse files
Update README.md
1 parent 0fd0286 commit f5b4e84

File tree

1 file changed

+3
-1
lines changed
  • Core ServiceNow APIs/GlideDateTime/Calculate Due date using user defined schedules

1 file changed

+3
-1
lines changed

Core ServiceNow APIs/GlideDateTime/Calculate Due date using user defined schedules/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ This can be used anywhere within the server side scripts like fix scripts, backg
44

55
**Pre-requisite:**
66
A schedule record with valid schedule entries should be created in the cmn_schedule table
7+
A business hours value per day need to be configured
8+
In this sample, the business hours per day is configured as 8 hours i.e 9AM - 5PM.
79

810
**Sample:**
911
var daysToAdd = 4; // No of days need to be added
1012
var script = new CaclculateDueDate().calculateDueDate(new GlideDateTime(),daysToAdd); // Passing the current date and daysToAdd value to script include
1113
gs.print(script);
1214

1315
**Output:**
14-
*** Script: 2025-10-09 11:23:34
16+
*** Script: 2025-10-13 13:56:07

0 commit comments

Comments
 (0)