Hi Lindsey,



Sorry I didn't read that you wanted to use it as a default value.



To make this work, remove the last line gs.log(...



And replace it with:



dueDateGdt;


I made your correction and still no change


find_real_file.png


andrew_venables
ServiceNow Employee

Sorry Lindsey, not having much luck here!



I've tested this and definitely got it this time...



You just need to add the below as a new line at the top of your script:


javascipt:



So it will look something like:


javascript:


// Get the datetime now


var nowGdt = new GlideDateTime();


...



Fingers crossed!


View solution in original post

That worked! Thank you so much for your help


Hi Lindsey, feel free to mark correct and helpful responses on this thread