can you share the code because it is working fine for me with following code
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin scri...
Apologies, my bad can you replace
start_date with sysparm_start_datemonths_to_add with sysparm_months_to_add
in both the client script and script include. That should work fine.
You can use GlideDateTime() for adding the time and you cannot add hours directly, you just have to convert the hours into seconds by multiplying with 60*60
In the below example it will add 12 hours.
var gdt = new GlideDateTime(current.start_date);
v...
Hi Gurbir,
This link will help you.
https://community.servicenow.com/community?id=community_question&sys_id=73638b25dbd8dbc01dcaf3231f96193d
Thanks
Naveen