Comment
Sai136
Kilo Expert
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
02-27-2023
10:39 AM
Hi floks i have one date filed - current date should grater than 50 days then task should be create , i wrote scripit but condition satisfy also it is always taking return no
answer = ifScript();
function ifScript() {
var ar = new GlideDateTime(current.variables.variable name.toString());
var ar1 = new GlideDateTime();
var zdays = ar1.addDays(50);
if (ar > zdays) {
return 'yes';
} else {
return 'no';
}
}