- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 04:43 AM
Hello, actually I have got one requirement to add a field on the Risk event form (Working days open). There is also another field on the form which is the 'Date Reported' which gets autopopulated on the day which the risk event has created.
So , I need the 'Working days open' field to get autopopulated with only the working days, including the 'Date Reported' and also to exclude the weekends and the UK bank holidays. So I have created a schedule of '8-5 weekdays excluding uk holidays' and trying to incorporate that schedule in my scheduled job but unfortunately, I can't do that. Can someone please me in solving this ? Below is my code that is giving me all the days .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 04:56 AM
@Community Alums
so basically you want to subtract the dates using schedule
Recently I shared solution for something similar, check that
calculate Duration and Business Duration in scoped application
also check these links
subtract time from schedule to update task due date
Calculate Date By Adding or Subtracting Time With A Schedule
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 04:56 AM
@Community Alums
so basically you want to subtract the dates using schedule
Recently I shared solution for something similar, check that
calculate Duration and Business Duration in scoped application
also check these links
subtract time from schedule to update task due date
Calculate Date By Adding or Subtracting Time With A Schedule
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 09:54 PM
Thank you so much, it worked