Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:14 PM - edited 03-07-2024 10:15 PM
A task needs to be created on 7 th jan ,April,July,oct (Each Quarter).
How can i find the next trigger date compared to today
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:39 PM
Hi @JPSS create a schedule job which runs daily and in condition field place this script
var gdt = new GlideDate(); //creates new date object
var m = gdt.getMonth(); //extracts the month
var d = gdt.getDayOfMonth(); //extracts the day
if((m == "4" || m == "7" || m == "10") & (d == "7")){
answer = true;
}
Regards
Harish
Harish
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 06:26 PM
Hi,
I need to capture the next trigger date in a variable. How can i get that